Trigger the CloudFormation Template by running bin/deploy script:
Here are the inputs required to launch CloudFormation templates:
Sit back and observe the progress of the CloudFormation execution until all the resources are created for you. Note that there will be multiple CloudFormation stacks that will be run. In the CloudFormation dashboard, ensure that the Deployment Pipeline CloudFormation is created.
Once the Deployment Pipeline is created, it will be executed and during the Deployment Stage, the ECS and Loadbalancer are created with a different set of CloudFormation stack. This is indicated in the figure below.
Note: Code-change will be seen flowing through the CodePipeline and will be blocked at the approval stage. Please approve the stage for the commit to go thru’ across both the blue and green services until all the stages are marked green.
After the above CloudFormation execution is completed, you can collect the DNS URL of Load Balancer using either ways:
(a) Check the LoadBalancer CloudFormation template output and select the ServiceUrl
(b) Go to EC2 Dashboard -> Select LoadBalancer from left -> Go to the Load Balancer Description tab and access the URL to see the ECS Sample App as shown below:
The output should show as the below: