AWS Step Functions to Amazon SNS

AWS Step Functions → Amazon SNS

Creates a Step Functions workflow that waits before sending an SNS message.

Step Functions receive an execution using the `start-execution` api command with the the message {"waitMilliseconds" : } in the input payload.
First the state machine calls a Lambda function to convert milliseconds to seconds.
The state machine will then enter a "Wait" state based on the configuration.
After the wait is complete a message is sent to SNS.

< 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/sfn-sns-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Abdullah Bashatah

Cloud Support Engineer @ AWS.

Follow on LinkedIn