Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FunctionBucketLink ¶
func FunctionBucketLink( iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ec2ServiceFactory pluginutils.ServiceFactory[*aws.Config, ec2service.Service], ) func(FunctionToBucketLinkDeps) provider.Link
FunctionBucketLink returns a link implementation for a link from a Lambda function to an S3 bucket. The Lambda function is granted read/write access to the bucket and, optionally, an environment variable referencing the bucket name. When the function is VPC-isolated, an S3 gateway VPC endpoint is activated on the linked flex VPC.
Types ¶
type FunctionToBucketLinkDeps ¶
type FunctionToBucketLinkDeps pluginutils.LinkServiceDeps[ *aws.Config, lambdaservice.Service, *aws.Config, cloudcontrolservice.Service, ]
FunctionToBucketLinkDeps is a type alias for the core dependencies for a link from a Lambda function to an S3 bucket. The bucket is a Cloud Control–backed resource, so resource B's service is the Cloud Control service; the link only reads the bucket name from state and does not call it.
Click to show internal directories.
Click to hide internal directories.