To get identity requested by step function

0

Executing step function need to get the identity details like which user triggered the step function.Need to pass identity detail to downstream like lambda function . Help me how can I get the identity details in step function I am not getting in execution context also

asked 2 months ago283 views
2 Answers
1

can you share the error you are getting?

profile picture
EXPERT
answered 2 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?

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.

profile pictureAWS
EXPERT
Uri
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions