SSM to AWS Lambda

AWS Systems Manager → AWS Lambda

Create an SSM automation document that invokes a Lambda function

This pattern demonstrates how to invoke a Lambda function from a Systems Manager automation document and pass in the document's run time execution parameters as input payload for the Lambda function.

< 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/systems-manager-automation-to-lambda

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete --stack-name STACK_NAME.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Created by:

Revanth Reddy Tumu

Revanth Reddy Tumu

DevOps Consultant on the AWS Professional Services Team Serving Customers in the South Central region of United States.

Follow on LinkedIn