Terraform variables allow you to customize your Terraform configuration with values that can be assigned by end users of your configuration. Our newly-updated Learn tutorial walks you through how to use variables in your configuration.
Try the hands-on, command-line tutorial
If you have any questions, ask away! Happy Terraforming!
(take 2)
The out-of-the-box tutorials works well, but changing only the AWS region from us-west-2
to us-east-1
does not. The terraform apply
succeed and I get a public DNS outputted, but navigating to that DNS yields a 503 error:
http://_______-project-alpha-dev-1763402651.us-east-1.elb.amazonaws.com
The Load balancer’s targets are marked as “OutOfService” even though the EC2 instances are running fine.
Does anyone know why changing does this and what else I would need to change to make us-east-1
works as well?
Thanks.
Hmm, now even the straight out-of-the-box tutorial yields a 503 error (using the latest main
branch):
This page isn’t workinglb-am7-project-alpha-dev-1575949823.us-west-2.elb.amazonaws.com is currently unable to handle this request.
HTTP ERROR 503
Same error, load balancer says “OutOfService”.
Even though both instances are running without any errors: