Create a Lambda function that publishes to an SNS topic
The SAM template deploys a Lambda function, an SNS topic and the IAM permissions required to run the application. The Lambda function publishes a message to the SNS topic when invoked.
The AWS SAM template deploys the resources and the IAM permissions required to run the application.