Deploying ECS fargate container with AWS CDK v2 typescript.
Deploy a fargate service having a nginx server container. The Ecs services passes information of the dynamo db to store the creation of messages and its id.
/lib/ecs-construct-example-stack.ts
where the defined stack is located
-
Cdk synth json file https://github.com/clarizalooktech/cdk-ecs-fargate-example/blob/master/assets/cdk_synth.json
npx cdk diff
compare deployed stack with current statenpx cdk synth
emits the synthesized CloudFormation templatenpx cdk deploy
deploy this stack to your default AWS account/region