This is a simple web application created using NGINX inside a Docker container. It also contains the relevant file to create a CI/CD pipeline with AWS.
File structure:
- Dockerfile: Simple web application using a Docker container based on NGINX.
- index.html: NGINX landing page.
- appspec.yml: CodeDeploy configuration file(AWS).
- buildspec.yml: CodeBuild configuration file(AWS).
- deploy/: Bash scripts required for the AWS pipelines.
5.1. application-stop.sh: Stop Docker container.
5.2. before-install.sh: Clean up directory.
5.3. after-install.sh: Docker build.
5.4. application-start.sh: Start Docker container. - terraform/ec2.tf: Terraform file to create an EC2 instance.
- docker-nginx.drawio: Draw.io diagram.
- docker-nginx.png: Architecture diagram.
* Docker == 3.1.0
* Terraform == 0.14.7
This is a sample web application. The purpose of this application is to show you how to automate the deployment of a Docker container in the AWS environment and the configuration files required.
This is not going to create the AWS pipeline automatically, but instead, this is meant to show you how to configure your application for CodeBuild and CodeDeploy with the respective configuration file buildspec.yml and appspec.yml.
The Terraform file will create the EC2instance only.