ECS laravel sample

  • application: laravel
  • test: circleci
  • server: ecs(FARGATE)
  • deploy: aws code pipeline(blue green deploy)

How to use

Set personal access token.

export TF_VAR_github_token=xxxx

Modify variable.tf

cd infra/terraform/dev
vi variable.tf

Execute terraform.

terraform init
terraform apply

Service registration will fail because there is no Image. Modify NAME in initialImagePush.sh

cd ../../../
vi initialImagePush.sh

Push Image to ecr.

./initialImagePush.sh

Re-execute terraform.

cd infra/terraform/dev
terraform apply