Search code examples
amazon-web-servicesamazon-cloudwatchaws-step-functions

How to pass constant value to AWS Step Function using Cloudwatch


I want to pass some payload to Step Function triggered by Cloudwatch rule. After passing payload, who can I receive it in Step Function ?


Solution

  • If you want to pass a payload to the step function you should pass in a constant, this will be a fixed JSON string that gets passed during every trigger.

    enter image description here

    From the image above you can see the ability to specify a JSON string, this will replace any of the previous input that would have been passed into the step function (the event JSON).