[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-apigw-fargate-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":19,"extension":20,"framework":21,"gitHub":22,"highlight":6,"introBox":31,"language":36,"level":37,"meta":38,"patternArch":39,"resources":52,"s3URL":6,"services":60,"stem":61,"testing":62,"videoId":30,"__hash__":66},"patterns\u002Fpatterns\u002Fapigw-fargate-cdk.json","Amazon API Gateway to AWS Fargate",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>.","3. You see a message confirming DELETE_COMPLETE.",[14],"content\u002Fcontributors\u002Fglenn-chia-jin-wee.json",{"text":16},[17,18],"npm install","cdk deploy","Create an API Gateway endpoint to access an AWS Fargate service","json","AWS CDK",{"template":23,"payloads":28},{"projectFolder":24,"repoURL":25,"templateURL":26,"templateFile":27},"apigw-fargate-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-fargate-cdk","serverless-patterns\u002Fapigw-fargate-cdk","cdk\u002Flib\u002Fcdk-stack.ts",[29],{"headline":30,"payloadURL":30},"",{"headline":32,"text":33},"How it works",[34,35],"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 a private Application Load Balancer in-front. The Application Load Balanced Fargate Service is integrated with Amazon API Gateway HTTP API to expose the endpoint.","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 to output a message.","TypeScript","200",{},{"icon1":40,"icon2":45,"line1":49},{"x":41,"y":42,"service":43,"label":44},20,50,"apigw","API Gateway",{"x":46,"y":42,"service":47,"label":48},80,"fargate","AWS Fargate",{"from":50,"to":51,"label":30},"icon1","icon2",{"headline":53,"bullets":54},"Additional resources",[55,57],{"text":48,"link":56},"https:\u002F\u002Faws.amazon.com\u002Ffargate\u002F",{"text":58,"link":59},"Building Happy Little APIs - Episode 1","https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=CEHC9crd2VU",{"from":43,"to":47},"patterns\u002Fapigw-fargate-cdk",{"headline":63,"text":64},"Testing",[65],"See the GitHub repo for detailed testing instructions.","01V4peoO1KhkDhjaeq0-inu2qIGlpdRf9xKJdUOWm0k",1782297322217]