[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-sfn-fargate-tf":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":29,"language":33,"level":34,"meta":35,"patternArch":39,"resources":52,"s3URL":6,"services":6,"stem":58,"testing":59,"videoId":28,"__hash__":63},"patterns\u002Fpatterns\u002Fsfn-fargate-tf.json","Manage a container task",null,{"headline":8,"text":9},"Cleanup",[10],"1. Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.",[12],"content\u002Fcontributors\u002Fitziar-olivera-goicolea.json",{"text":14},[15,16],"terraform init","terraform apply","This workflow uses Step Functions to trigger a SNS notification on success or failure of a Fargate task.","json","Terraform",{"template":21,"payloads":26},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsfn-manage-container-task-tf","serverless-patterns\u002Fsfn-manage-container-task-tf","sfn-manage-container-task-tf","main.tf",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32],"This sample project demonstrates how to run an AWS Fargate task, and then send an Amazon SNS notification based on whether that job succeeds or fails. Deploying this sample project will create an AWS Step Functions state machine, a Fargate cluster, and an Amazon SNS topic.\n\nIn this project, Step Functions uses a state machine to call the Fargate task synchronously. It then waits for the task to succeed or fail, and it sends an Amazon SNS topic with a message about whether the job succeeded or failed.","Python","100",{"content-owner":36,"simplicity":37,"usecase":28,"type":38},"jbeswick","1 - Fundamental","Standard",{"icon1":40,"icon2":45,"line1":49},{"x":41,"y":42,"service":43,"label":44},20,50,"sfn","Step Functions",{"x":46,"y":42,"service":47,"label":48},80,"fargate","AWS Fargate",{"from":50,"to":51,"label":28},"icon1","icon2",{"headline":53,"bullets":54},"Additional resources",[55],{"text":56,"link":57},"The AWS Step Functions Workshop","https:\u002F\u002Fcatalog.workshops.aws\u002Fstepfunctions\u002Fen-US","patterns\u002Fsfn-fargate-tf",{"headline":60,"text":61},"Testing",[62],"See the GitHub repo for detailed testing instructions.","foUSUa74GLVGNQVf9NagMNHmh1QN_ownU_7IGgIAvxU",1778846887843]