AWS Lambda Secrets Manager using Java SDK

AWS Lambda → Secrets Manager

Retrieving a secret from Secrets Manager using Lambda.

This pattern stores a secret in Secrets Manager. A Lambda function uses AWS SDK for Java to read the secret in the init phase, outside the handler.

< 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-secretsmanager-java-sam

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Paras Jain

Paras Jain

Paras is a Technical Account Manager with AWS based out of Herndon, Virginia, USA. He is a member of Serverless Technical Field Community.

Follow on LinkedIn