Init:
cd terraform
terraform initUse Elastic Container Registry to store docker image:
terraform apply --target aws_ecr_repository.appLogin to Elastic Container Repository:
$(aws ecr get-login --region $(terraform output aws_region) --no-include-email)Build and publish docker:
docker build -t app ..
docker tag app $(terraform output app-repo):latest
docker push $(terraform output app-repo):latestReview:
terraform planDeploy:
terraform applyTest:
curl $(terraform output alb_dns_name)Destroy:
terraform destroy