Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send every time new UUID to AWS step function through AWS CloudWatch event rule

How to send a unique value(UUID4) to the step function is the json format, when it was triggered every time from the cloudwatch event rules? Can any one help on this. Thanks in advance.

like image 280
Hrushikesh Patel Avatar asked Sep 02 '25 14:09

Hrushikesh Patel


1 Answers

AWS Step Functions now provides an intrinsic function to generate a UUIDv4 string in the ASL definition: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-intrinsic-functions.html#asl-intrsc-func-uuid-generate

Example:

"uuid.$": "States.UUID()"
// output
{ "uuid": "ca4c1140-dcc1-40cd-ad05-7b4aa23df4a8" }
like image 150
abk Avatar answered Sep 05 '25 16:09

abk