QuestionQ116

VerifiedDeployment

A company is updating an application to move the backend of the application from Amazon EC2 instances to a serverless model. The application uses an Amazon RDS for MySQL DB instance and runs in a single VPC on AWS. The application and the DB instance are deployed in a private subnet in the VPC.

The company needs to connect AWS Lambda functions to the DB instance.

Which solution will meet these requirements?

Explanation

Lambda functions must be deployed inside the VPC to access RDS in a private subnet. The AWSLambdaVPCAccessExecutionRole policy grants permissions to create ENIs and attach security groups for VPC connectivity. Modifying the RDS security group to allow traffic from the Lambda security group completes the network access configuration.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!