AWS Lambda to SSM Parameter Store

AWS Lambda → SSM Parameter Store

Creates an AWS Lambda function and an AWS Systems Manager Parameter Store parameter

This pattern creates an AWS Lambda function and an AWS Systems Manager Parameter Store parameter. The parameter is added as a function environment variable named "SSMParameterName".
The method can be either GET (retrieve current parameter value) or PUT (update parameter with new value). The body of the event is used to define the new value of the parameter.

< 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-ssm-parameter-terraform

Deploy

terraform initterraform apply


Testing

See the README in the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: terraform destroy.
2. Confirm the stack has been deleted: terraform show

Created by:

Stephen Monaghan

Solutions Architect, AWS

Follow on LinkedIn