[{"data":1,"prerenderedAt":73},["ShallowReactive",2],{"pattern-cdk-fargate-aurora-serverless":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":38,"level":39,"meta":40,"patternArch":41,"resources":54,"s3URL":6,"services":66,"stem":67,"testing":68,"videoId":30,"__hash__":72},"patterns\u002Fpatterns\u002Fcdk-fargate-aurora-serverless.json","AWS Fargate to Amazon Aurora Serverless",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 AWS Fargate service that interacts with Aurora Serverless","json","AWS CDK",{"template":23,"payloads":28},{"projectFolder":24,"repoURL":25,"templateURL":26,"templateFile":27},"fargate-aurora-serverless-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Ffargate-aurora-serverless-cdk","serverless-patterns\u002Ffargate-aurora-serverless-cdk","cdk\u002Flib\u002Fcdk-stack.ts",[29],{"headline":30,"payloadURL":30},"",{"headline":32,"text":33},"How it works",[34,35,36,37],"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 executes commands against an Amazon Aurora Serverless Cluster. 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, \u002Fcreatetable for adding a table to the database, and \u002Fshowtables for displaying a list of tables in the database.","Environment variables like the database name, secrets ARN, and Aurora Serverless Cluster ARN are passed to the image to enable it to perform actions on the Database.","TypeScript","200",{},{"icon1":42,"icon2":47,"line1":51},{"x":43,"y":44,"service":45,"label":46},20,50,"fargate","AWS Fargate",{"x":48,"y":44,"service":49,"label":50},80,"aurora","Aurora Serverless",{"from":52,"to":53,"label":30},"icon1","icon2",{"headline":55,"bullets":56},"Additional resources",[57,60,63],{"text":58,"link":59},"CDK documentation for ApplicationLoadBalancedFargateService","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fapi\u002Flatest\u002Fdocs\u002F@aws-cdk_aws-ecs-patterns.ApplicationLoadBalancedFargateService.html",{"text":61,"link":62},"CDK documentation for Secrets Manager","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fapi\u002Flatest\u002Fdocs\u002Faws-secretsmanager-readme.html",{"text":64,"link":65},"CDK documentation for RDS Serverless Cluster","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fapi\u002Flatest\u002Fdocs\u002F@aws-cdk_aws-rds.ServerlessCluster.html",{"from":45,"to":45},"patterns\u002Fcdk-fargate-aurora-serverless",{"headline":69,"text":70},"Testing",[71],"See the GitHub repo for detailed testing instructions.","-kcC9TNKrxZEpRK70kY8-9mmIV7tqk7IuH8qLBtgrr8",1779273334054]