Build the environment

cd ~/environment/ecsworkshop-efsdemo/ecsworkshop

Code Review

Similar to how we deployed in all of the other environments, we follow the same format here by using the AWS CDK. The only difference is that we will deploy the ECS task definition and service using the AWS CLI. We’re going to skip over some items that we’ve gone over previously in the workshop (importing the existing vpc, and ecs cluster for example).

Let's Dive in

Confirm that the cdk can synthesize the assembly CloudFormation templates

cdk synth

Review what the cdk is proposing to build and/or change in the environment

cdk diff

Deploy the resources

cdk deploy --require-approval never
  • Once the deployment is complete, it’s time to move to the next step where we will deploy the actual container as a service.