[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-cdk-fargate-sqs-python":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":33,"level":34,"meta":35,"patternArch":36,"resources":50,"s3URL":6,"services":6,"stem":58,"testing":59,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Fcdk-fargate-sqs-python.json","AWS Fargate to Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10],"Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.",[12],"content\u002Fcontributors\u002Fgustavo-martim.json",{"text":14},[15,16],"npm install","cdk deploy","Create an AWS Fargate service that interacts with SQS","json","AWS CDK",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"sqs-fargate-cdk-python","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsqs-fargate-cdk-python","serverless-patterns\u002Fsqs-fargate-cdk-python","sqs_fargate_cdk_python\u002Fsqs_fargate_cdk_python_stack.py",{"headline":27,"text":28},"How it works",[29,30,31,32],"This project contains a sample AWS Cloud Development Kit (AWS CDK) template for deploying an AWS Fargate service running on an Amazon Elastic Container Service (ECS) cluster with an Application Load Balancer in-front.","The AWS Fargate service makes sendMessage and receiveMessage calls to an Amazon Simple Queue Service (SQS) queue. This template uses a custom image without having to pre-push the image to Amazon Elastic Container Registry (ECR) or another container library.","This makes use of the in-built ecs.ContainerImage.fromAsset method. The custom image has a base route \u002F for health checks, \u002Fsendmessage for adding to the queue and \u002Freadmessage for reading messages from the queue.","Environment variables like the SQS Queue URL and AWS region are passed to the image to enable it to perform actions on the SQS Queue.","Python","200",{},{"icon1":37,"icon2":42,"line1":46},{"x":38,"y":39,"service":40,"label":41},20,50,"fargate","AWS Fargate",{"x":43,"y":39,"service":44,"label":45},80,"sqs","SQS",{"from":47,"to":48,"label":49},"icon1","icon2","",{"headline":51,"bullets":52},"Additional resources",[53,55],{"text":41,"link":54},"https:\u002F\u002Faws.amazon.com\u002Ffargate\u002F",{"text":56,"link":57},"Amazon SQS","https:\u002F\u002Faws.amazon.com\u002Fsqs\u002F","patterns\u002Fcdk-fargate-sqs-python",{"headline":60,"text":61},"Testing",[62],"See the GitHub repo for detailed testing instructions.","DWn-i1BJexnUnneIqKVePKFj9lskYc6jALPHU0f6CSs",1778846883588]