lambdards

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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(
	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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL