This repository provides AWS CloudFormation
templates for AWS ECS
with Blue/Green Deployment.
The Makefile is provided, so, you can set up the environment by executing the make command.
See the Makefile for command details.
$ make deploy-vpc-subnet profile=$(profile)
$ make deploy-nat-instance profile=$(profile)
$ make deploy-network profile=$(profile)
$ make deploy-security-group profile=$(profile)
$ make deploy-load-balancer profile=$(profile)
$ make deploy-ecs-ecr profile=$(profile)
$ make push-docker-images profile=$(profile)
$ make deploy-ecs-cluster profile=$(profile)
$ make deploy-ecs-service profile=$(profile)
$ make deploy-secrets-github profile=$(profile) access-token=$(access-token)
$ make deploy-code-deploy profile=$(profile)
$ make deploy-code-pipeline profile=$(profile)
$ curl -L -X GET -I 'http://${Load Balancer DNS}' # e.g http://ecs-blue-green-demo-app-xxxxxxxxx.{region}.elb.amazonaws.com
HTTP/1.1 200 OK
Date: Thu, 11 Feb 2021 13:45:13 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: nginx
X-Powered-By: PHP/7.4.15