Create the infrastructure to deploy a simple website (helloworld!) with a complete CI CD deploy to ECR and ECS services from Amazon AWS
Docker - Terraform - Spring boot - Java AWS - ECS - ECR
$ export AWS_ACCESS_KEY_ID=(your_id)
$ export AWS_SECRET_ACCESS_KEY=(your_secret)
$ cd terraform
$ terraform init
$ terraform apply
- Make sure the following secrets are set at Settings>Secrets
AWS_ACCESS_KEY_ID=(your_id)
AWS_SECRET_ACCESS_KEY=(your_secret)
- Then, It's possible to run this pipeline manually, or just commit/PR to main
The infrastructure code sets up a load balancer, make sure when you to check the DNS name using
$ terraform state show aws_alb.application_load_balancer
then, your application should render after the deployment has finished