[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-sfn-lambda-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":31,"level":32,"meta":33,"patternArch":34,"resources":56,"s3URL":6,"services":6,"stem":64,"testing":65,"videoId":6,"__hash__":68},"patterns\u002Fpatterns\u002Fsfn-lambda-terraform.json","Invoke cross account AWS Lambda function directly via AWS Step Functions",null,{"text":8},[9,10],"terraform destroy","terraform show",[12],"content\u002Fcontributors\u002Fshivam-rajawat.json",{"text":14},[15,16],"terraform init","terraform apply","Create a Step Functions workflow which invokes cross account Lambda function","json","Terraform",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsfn-lambda-function-crossaccount-terraform","serverless-patterns\u002Fsfn-lambda-function-crossaccount-terraform","sfn-lambda-function-crossaccount-terraform","main.tf",{"headline":27,"text":28},"How it works",[29,30],"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.","Python","200",{},{"group1":35,"icon1":41,"group2":46,"icon2":49,"line1":53},{"x":36,"y":37,"w":38,"h":39,"label":40},10,15,40,70,"AWS Account 1",{"x":42,"y":43,"service":44,"label":45},30,50,"sfn","AWS Step Functions",{"x":47,"y":37,"w":38,"h":39,"label":48},56,"AWS Account 2",{"x":50,"y":43,"service":51,"label":52},75,"lambda","AWS Lambda",{"from":54,"to":55},"icon1","icon2",{"bullets":57},[58,61],{"text":59,"link":60},"Tutorial - How to invoke a Lambda function from Step function","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-lambda.html",{"text":62,"link":63},"Orchestration examples","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fservices-stepfunctions.html","patterns\u002Fsfn-lambda-terraform",{"text":66},[67],"See the GitHub repo for detailed testing instructions.","U99V3NTbNvqgmEp6hDehuqvn7ADn5czW0RKKJnJtzrM",1779273339316]