hashicorp / terraform-aws-consul

A Terraform Module for how to run Consul on AWS using Terraform and Packer
Apache License 2.0
401 stars 484 forks source link

consul_cluster module subnet_ids and availability_zones is incorrect #126

Closed iainthegray closed 3 years ago

iainthegray commented 5 years ago

The docs state that "At least one of var.subnet_ids or var.availability_zones must be non-empty."

If you run the module with availability_zones set then it fails as it tries to add ec2 to incorrect subnets. In my setup I have the default VPC and a new VPC. If I do not specifically state the subnet_ids then the module will try and put the EC2 in the incorrect VPC.

brikis98 commented 5 years ago

Hm, shouldn't the aws_autoscaling_group resource use the default VPC if you don't specify one explicitly?

brikis98 commented 3 years ago

No response for a long time. Closing.