Objective:
- The aim of this blog is to provide simple and clear steps to deploy a web application to AWS ElasticBeanstalk using AWS Cloudformation and GitLab Pipeline or using codebuild.
- I intentionally have chosen not to include the RDS template as part of the CI/CD pipeline, considering it as part of the architecture diagram. This decision was based on the best practice of managing it separately from the pipeline lifecycle.
- Also you will learn to use .ebextensions to configure with your code to do some great stuffs like monitoring Memory, setting up some nginx custom configuration and enabling cross zone.
Prerequisite:
GitHub Repo Link:
Project Folder Structure:
Architecture diagram:
STEPS:
- Write .gitlab-ci.yml for GitLab pipeline and buildspec.yml for CodeBuild
- Setup the runner and give runner tag as aws
- Commit the code to development branch
.gitlab-ci.yml Content:
buildspec.yml Content:
Thanks for Reading!!
0 Comments