Skip to main content

Aurora Cluster

Lambda can connect to an Aurora Cluster:

  • Connection Types:
    • read-write - Lambda can read from the Aurora Cluster and write to the Aurora Cluster.
    • read-only - Lambda can only read from the Aurora Cluster.

After adding the connection, we will see the generated environment variables, that are now accessible for the Lambda, in the Lambda settings:

Environment Variables

You'll need to use these variables in your code to connect to Aurora Cluster:

  • DB_CLUSTER01 - the endpoint of the cluster (host and port).
  • DB_SECRET_CLUSTER01 - the secret IDs of the user name and password of the cluster.

When we added the connection, we got the following recommendation:

  • Follow the recommendation in order to gain access to the Aurora Cluster - make sure that the Lambda Function and the Aurora Cluster are in the same VPC.

To learn more about accessing the Aurora Cluster from a Lambda go to: How to use Aurora Cluster in your Altostra projects.

Ready to Get Started?

Get Started for Free
© 2023 Altostra, Inc.