Create a CI/CD pipeline for a simple web application using AWS CodePipeline, AWS CodeBuild, and AWS Elastic Beanstalk. The pipeline should automatically build, test, and deploy the application to Elastic Beanstalk whenever there is a change to the code in the repository.
- The web application must be hosted on Elastic Beanstalk.
- The CI/CD pipeline must be defined using AWS CodePipeline.
- The pipeline must build the application using AWS CodeBuild.
- The pipeline must deploy the application to Elastic Beanstalk using the CodePipeline to Elastic Beanstalk integration.
- The pipeline must be triggered automatically whenever there is a change to the code in the repository.
- Add any one of Unit or Integration tests to the application and configure the pipeline to run the tests before deploying the application.
- Source: Github
- Continuous Integration: AWS CodeBuild - leveraged
buildspec.yml
to build the codebase - Continuous Deployment: AWS CodeDeploy - leveraged Amazon Elastic BeanStalk for deployment
- Actuator endpoints are enabled under
/actuator/*
- Sample
HelloController
enabled under/hello
.