Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FunctionCacheLink ¶
func FunctionCacheLink( iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ec2ServiceFactory pluginutils.ServiceFactory[*aws.Config, ec2service.Service], ) func(FunctionToCacheLinkDeps) provider.Link
FunctionCacheLink returns a link implementation for a link from a Lambda function to an ElastiCache (Redis/Valkey) replication group. The function is given network access to the cache (a security-group rule on the cache port) and connection environment variables (endpoint/port).
Types ¶
type FunctionToCacheLinkDeps ¶
type FunctionToCacheLinkDeps pluginutils.LinkServiceDeps[ *aws.Config, lambdaservice.Service, *aws.Config, cloudcontrolservice.Service, ]
FunctionToCacheLinkDeps is a type alias for the core dependencies for a link from a Lambda function to an ElastiCache replication group. The cache is a Cloud Control–backed resource, so resource B's service is the Cloud Control service; the link only reads the cache's endpoints and security group from state/spec and does not call it.
Click to show internal directories.
Click to hide internal directories.