This repository is a sample of B/G Deployment to AWS Fargate with terraform.
The following versions have been tested
$ terraform -v
Terraform v0.12.16
+ provider.aws v2.64.0
+ provider.null v2.1.2
$ git clone https://github.com/yuukiyo/ecsCodeDeploy.git
$ cd ecsCodeDeploy
$ terraform init
$ terraform apply --auto-approve
Get the DNS Name of alb.
$ aws elbv2 describe-load-balancers | jq .LoadBalancers[0].DNSName
"ecs-codedeploy-alb-1267343211.ap-northeast-1.elb.amazonaws.com"
Let's access it from your browser.
If the following screen appears, you have succeeded.

$ git reset --hard origin/b/g-deploy
$ terraform apply --auto-approve
Let's access the same URL as in Step 3.
If the following screen appears, you have succeeded.
