AWS Lambda function in a VPC

AWS Lambda → Secrets Manager

Create a Lambda Function in a VPC with secure access to Secrets Manager.

This sample project demonstrates how to create a Lambda function in a VPC and only granting access to Secrets Manager via a VPC endpoint.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/lambda-vpc-secrets-sls

Deploy

sls deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sls remove.

Created by:

Wayne Greeley

AWS Community Builder