In CodePipeline console, once the UpdatePipeline stage picks up new code for an additional stage, it will self-mutate and add 2 new stages, one for the Assets and another for Pre-Prod. Once the UpdatePipeline stage has completed successfully, the pipeline will again run from start. This time it will not stop at UpdatePipeline stage. It will transition further to the new stages Assets and Pre-prod to deploy the Beanstalk application, environment and the MyWebApp application.
After all of stages in CodePipeline were built, two CloudFormation stacks are created.
Go to Elastic Beanstalk to verify the result.
Click to application name MyWebApp.
Click MyWebAppEnvironment environment.
Click Domain of environment to see the result of your application.
Congratulation, your CDK Pipeline was created successfully.
At ./src/index.html, make the changes you want and save. Ex: Replace Welcome to the FCJ Workshop to Welcome to the FCJ Workshop, this is my first project!!!
.
Push your source code to GitHub repository.
git add . && git commit -am 'Changing index.html' && git push
Congratulation, your CDK Pipeline deployed your changing application.