2 Answers
- Newest
- Most votes
- Most comments
1
Unfortunately, there is no built in way to get the identity of the invoker. If you need this information in the state machine, require that the invoker includes the information as part of the payload.
Relevant content
- Accepted Answerasked a year ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 7 months ago
Hi thanks for reply...
There is no error ..here is scenario after login in san box, user will trigger step function from CLI..MY step function working fine and getting expected results but here question I need to capture which user executed/requested step function from san box ..so need to capture identity details of the requested user..
Thanks in advance
If you're looking to track the actions performed on your Step Function, consider leveraging AWS CloudTrail. CloudTrail allows you to audit activity and monitor who is interacting with your Step Function. You can find more information about CloudTrail here.
Here is the official website
Moreover, CloudTrail offers a free tier that enables you to begin testing immediately. You can explore its features without incurring any costs. Learn more about the free tier here.
Hi ..yes we will get the detail in audit trail ..here I need to invoke multiple lambda functions and send the identify details like who requested step function in the email
Thanks for your consideration
Let me see if we are in sync, you have entities who invoke your Step Function and you want to send via email a notification when an entity invoke the Step Function, is it that? Because when a user in your account make any request Cloudtrail generate a CloudTrail log event. You can configure Cloudtrail with Amazon SNS to send notification via email when it's generated a new cloudtrail log event, you can see here. If this is not what you're trying to do, can you explain me better in order to provide you a better solution?