[{"data":1,"prerenderedAt":90},["ShallowReactive",2],{"pattern-sfn-glue-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":36,"level":37,"meta":38,"patternArch":39,"resources":63,"s3URL":6,"services":6,"stem":84,"testing":85,"videoId":6,"__hash__":89},"patterns\u002Fpatterns\u002Fsfn-glue-terraform.json","AWS Step Functions to AWS Glue",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>terraform apply -destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Frohit-masur.json",{"text":15},[16,17],"terraform init","terraform apply","Create an AWS Step Functions workflow to integrate with AWS Glue.","json","Terraform",{"template":22},{"repoURL":23,"templateURL":24,"projectFolder":25,"templateFile":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsfn-glue-terraform","serverless-patterns\u002Fsfn-glue-terraform","sfn-glue-terraform","main.tf",{"headline":28,"text":29},"How it works",[30,31,32,33,34,35],"The Terraform template deploys a AWS Step Function, a AWS Glue Job, a CloudWatch Event Rule, a Amazon S3 bucket and the minimum IAM resources required to run the application.","This pattern demonstrates the use of Terraform modules and deploys the below resources:","- Amazon S3 bucket and load the sample Python script as an object","- Sample AWS Glue Job which executes the script in the S3 bucket","- AWS Step Functionsto invoke the AWS Glue Job synchronously. The Function will wait until the Job is completed","- CloudWatch Event Rule which is configured to start the AWS Step Functionsevey 10 minutes","Python","300",{},{"icon1":40,"icon2":45,"icon3":49,"icon4":53,"line1":57,"line2":61},{"x":41,"y":42,"service":43,"label":44},20,50,"eventbridge","EventBridge",{"x":46,"y":42,"service":47,"label":48},40,"sfn","Step Functions",{"x":50,"y":42,"service":51,"label":52},60,"glue","AWS Glue",{"x":54,"y":42,"service":55,"label":56},80,"s3","Amazon S3",{"from":58,"to":59,"label":60},"icon1","icon2","",{"from":59,"to":62,"label":60},"icon3",{"headline":64,"bullets":65},"Additional resources",[66,69,72,75,78,81],{"text":67,"link":68},"What Is AWS Glue?","https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fwhat-is-glue.html",{"text":70,"link":71},"Manage AWS Glue Jobs with Step Functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-glue.html",{"text":73,"link":74},"Service Integration Patterns","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-to-resource.html#connect-sync",{"text":76,"link":77},"CDK documentation for Glue","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fapi\u002Flatest\u002Fdocs\u002Faws-glue-readme.html",{"text":79,"link":80},"CDK documentation for Step Functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fapi\u002Flatest\u002Fdocs\u002Faws-stepfunctions-readme.html",{"text":82,"link":83},"CDK documentation for Step Functions Tasks","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fapi\u002Flatest\u002Fdocs\u002Faws-stepfunctions-tasks-readme.html","patterns\u002Fsfn-glue-terraform",{"headline":86,"text":87},"Testing",[88],"See the GitHub repo for detailed testing instructions.","9U-SDFXrW7KrDee-iAjyh2JV1aDYnJRH5DSXb9VuVM8",1778846887851]