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