mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
c6beaa7ce8
Signed-off-by: Valentin Pichard <valentin.pichard@corp.ovh.com> |
||
---|---|---|
.. | ||
cloud-config.yml | ||
instance-profile-policy.json | ||
main.tf | ||
outputs.tf | ||
README.md | ||
task-definition.json | ||
variables.tf |
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