Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VPCFunctionLink ¶
func VPCFunctionLink( iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ) func(VPCToFunctionLinkDeps) provider.Link
VPCFunctionLink returns a link implementation that places a Lambda function within a flex VPC. The function's VpcConfig is set from the VPC's computed subnets (selected by the aws.flexvpc.lambda.subnetType annotation) and Bluelink-managed security group.
The function's execution role is granted the network interface permissions Lambda requires of a VPC-attached function, so the IAM service is needed alongside the two resource services.
Types ¶
type VPCToFunctionLinkDeps ¶
type VPCToFunctionLinkDeps pluginutils.LinkServiceDeps[ *aws.Config, ec2service.Service, *aws.Config, lambdaservice.Service, ]
VPCToFunctionLinkDeps is a type alias for the core dependencies for a link from a flex VPC to a Lambda function. Resource A is the flex VPC (backed by the EC2 service) and resource B is the Lambda function.
Click to show internal directories.
Click to hide internal directories.