You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/examples/aws-ecs-alb
Valentin Pichard c6beaa7ce8
Fmt all the config files
10 years ago
..
README.md provider/aws: Add support for ECS svc - LB target group (#8190) 10 years ago
cloud-config.yml provider/aws: Add support for ECS svc - LB target group (#8190) 10 years ago
instance-profile-policy.json provider/aws: Add support for ECS svc - LB target group (#8190) 10 years ago
main.tf Fmt all the config files 10 years ago
outputs.tf provider/aws: Add support for ECS svc - LB target group (#8190) 10 years ago
task-definition.json provider/aws: Add support for ECS svc - LB target group (#8190) 10 years ago
variables.tf Fmt all the config files 10 years ago

README.md

ECS with ALB example

This example shows how to launch an ECS service fronted with Application Load Balancer.

The example uses latest CoreOS Stable AMIs.

To run, configure your AWS provider as described in https://www.terraform.io/docs/providers/aws/index.html

Get up and running

Planning phase

terraform plan \
	-var admin_cidr_ingress='"{your_ip_address}/32"' \
	-var key_name={your_key_name}

Apply phase

terraform apply \
	-var admin_cidr_ingress='"{your_ip_address}/32"' \
	-var key_name={your_key_name}

Once the stack is created, wait for a few minutes and test the stack by launching a browser with the ALB url.

Destroy 💥

terraform destroy