Documentation
¶
Index ¶
- func FunctionClusterLink(iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ...) func(FunctionToClusterLinkDeps) provider.Link
- func FunctionProxyLink(iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ...) func(FunctionToProxyLinkDeps) provider.Link
- type FunctionToClusterLinkDeps
- type FunctionToProxyLinkDeps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FunctionClusterLink ¶
func FunctionClusterLink( iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ec2ServiceFactory pluginutils.ServiceFactory[*aws.Config, ec2service.Service], ) func(FunctionToClusterLinkDeps) provider.Link
FunctionClusterLink returns a link implementation for a link from a Lambda function to an Aurora database cluster. The function is given network access to the cluster (a security-group rule on the database port), optionally an IAM rds-db:connect grant for token-based auth, and connection environment variables (writer/reader endpoint, port, database name).
func FunctionProxyLink ¶
func FunctionProxyLink( iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ec2ServiceFactory pluginutils.ServiceFactory[*aws.Config, ec2service.Service], ) func(FunctionToProxyLinkDeps) provider.Link
FunctionProxyLink returns a link implementation for a link from a Lambda function to an RDS Proxy. The function is given network access to the proxy (a security-group rule on the database port), optionally an IAM rds-db:connect grant for token-based auth, and connection environment variables (endpoint/port/database name).
Types ¶
type FunctionToClusterLinkDeps ¶
type FunctionToClusterLinkDeps pluginutils.LinkServiceDeps[ *aws.Config, lambdaservice.Service, *aws.Config, cloudcontrolservice.Service, ]
FunctionToClusterLinkDeps is a type alias for the core dependencies for a link from a Lambda function to an Aurora database cluster. The cluster is a Cloud Control–backed resource, so resource B's service is the Cloud Control service; the link only reads the cluster's endpoints, ARN, resource id and security group from state and does not call it.
type FunctionToProxyLinkDeps ¶
type FunctionToProxyLinkDeps pluginutils.LinkServiceDeps[ *aws.Config, lambdaservice.Service, *aws.Config, cloudcontrolservice.Service, ]
FunctionToProxyLinkDeps is a type alias for the core dependencies for a link from a Lambda function to an RDS Proxy. The proxy is a Cloud Control–backed resource, so resource B's service is the Cloud Control service; the link only reads the proxy's endpoint, ARN and security group from state and does not call it.