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

Warnings on outputs #127

Open iainthegray opened 5 years ago

iainthegray commented 5 years ago

When running this with TF 0.11.x these warnings are shown:

Warning: output "asg_name": must use splat syntax to access aws_autoscaling_group.autoscaling_group attribute "name", because it has "count" set; use aws_autoscaling_group.autoscaling_group.*.name to obtain a list of the attributes across all instances

Warning: output "cluster_size": must use splat syntax to access aws_autoscaling_group.autoscaling_group attribute "desired_capacity", because it has "count" set; use aws_autoscaling_group.autoscaling_group.*.desired_capacity to obtain a list of the attributes across all instances

Warning: output "launch_config_name": must use splat syntax to access aws_launch_configuration.launch_configuration attribute "name", because it has "count" set; use aws_launch_configuration.launch_configuration.*.name to obtain a list of the attributes across all instances

brikis98 commented 5 years ago

Hm, I could've sworn we fixed these when we did our Terraform 0.11 upgrade. 😕

Fairly easy tweak if anyone has time for a PR.