A simple personal website hosted on Amazon S3.
- CloudFormation creates an S3 bucket and set a Route53 record fronted by Cloudflare
- AWS CodePipeline sources https://github.com/hoadinhmai/hdm.cloud.git on commit to master branch
- AWS CodeBuild syncs contents to S3 bucket
Creates a CodePipeline and CodeBuild project for deploying static content to S3
cd terraform && make infra stage=<dev\prod>
Each commit to master triggers a Gitlab CI build of a new Docker image (Nginx:alpine + static content).
Image is pushed to Gitlab registry and ready to be consumed by ECS Fargate CloudFormation deployment.
packer.json template provisions an AMI with Nginx installed to host static content on EC2.