Invoke cross account AWS Lambda function directly via Step function

AWS Step Functions → AWS Lambda

Create a Step function which invokes cross account Lambda function

This sample pattern allows users from one account to invoke their Lambda function present in a different account via Step function and retrieve the desired output.
This is highly efficient and useful when it comes to pulling cross account data all in one place.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/sfn-lambda-function-crossaccount

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete --stack-name

Created by:

Shivam Rajawat

I am a Cloud Support Engineer (Serverless) at AWS and I love to solve complex problems.

Follow on LinkedIn