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

質問済み 3ヶ月前300ビュー
2回答
1

can you share the error you are getting?

profile picture
エキスパート
回答済み 3ヶ月前
  • 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
エキスパート
Uri
回答済み 3ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ