Sample AWS Hello World Application: From educative course - The Good Parts of AWS: Cutting Through the Clutter
This project demonstrates the use of CloudFormation to deploy a simple web application along with all the required AWS resources
- VPC
- Internet Gateways
- Public and Private Subnets
- Route Table
- Security Groups
- IAM Role and Instance Profile
- NAT Gateways
- Launch Templates
- Auto Scaling Groups
This project creates a CodePipeline to deploy the project onto the Staging and Production environment whenever a commit is made to the project repository. To achieve this, it also uses AWS CodeBuild and CodeDeploy services.
A simple nodejs http/https server is used as a sample web application in this project to demonstrate the use of
- CodePipeline
- CodeBuild
- CodeDeploy
To create all the AWS resources and deploy the sample web application, just run the below command from Project root directory
./deploy-infra.sh
You may need to update the following variables in the script "deploy-infra.sh" to make it work:-
- AWS_ACCOUNT_ID
- GH_ACCESS_TOKEN
- GH_OWNER
- GH_REPO
- GH_BRANCH
- STACK_NAME
- REGION
- CLI_PROFILE
- EC2_INSTANCE_TYPE
- DOMAIN
- CERT
- CODEPIPELINE_BUCKET
- CFN_BUCKET
The above script print the endpoint using which the site can be opened.