Skip to content

gnm3000/terraform-ecs-ec2-autoscalling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform project with ECS and EC2 autoscaling

Look this PR related with the version using awsvpc network mode PR Open awsvpc support

Blog Post about this project: https://germanmontenegro.com/2023/11/13/ecs-using-ec2-instances-with-autoscaling/

Alternative to terraform is possible to use AWS CDK Python

terraform init

image

terraform plan

image

terraform apply

In total we apply the 21 resource, I apply twice. image

Then we go to the ALB url

image

My Cluster => image

My tasks =>

image

The autoscalling set DesiredCount to 2 because the threshold is so low, but this means its working

image

The capacity provider and containers instances

image

terraform destroy

image

image

About

Setup for ALB with ECS EC2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages