Invoke cross account AWS Lambda function directly via AWS Step Functions

AWS Step Functions → AWS Lambda

Create a Step Functions workflow 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 Functions 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-terraform

Deploy

terraform initterraform apply


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

terraform destroy
terraform show

Created by:

Shivam Rajawat

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

Follow on LinkedIn