简体   繁体   中英

Calling SNS when AWS Step Function fails

I have implemented a state machine using AWS Step Functions which includes calling some Lambda functions, Spinning EMR cluster, Adding steps to EMR and Terminating EMR cluster. I want to call SNS Topic whenever any of above state fails.

You can create a cloudwatch event to capture the stepfunction failure or time out events and add SNS as the target for this rule.

to create a cloudwatch rule navigate to cloudwatch -> events -> rules -> create

this rule can be restricted to a specific stepfunction or a specific execution providing the corresponding ARN

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM