How to connect to ECR from Fargate task in the VPC Build Docker image and push to ECR on Terraform apply
Hands-on
How to get current task ID/ARN from within the container?
Use Amazon ECS task metadata endpoint (Fargate). Response examples for Fargate here.
Fargate autoscaling
todo Draft references:
- https://repost.aws/knowledge-center/ecs-fargate-service-auto-scaling
- https://spot.io/resources/aws-fargate/fargate-autoscaling/
- https://stackoverflow.com/questions/72310885/configure-ecs-to-scale-to-zero-when-not-in-use
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html
- https://stackoverflow.com/questions/66915261/in-terraform-for-aws-ecs-service-how-do-we-set-service-set-auto-scaling