Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inappropriate value for attribute "subnets": element 0: string required. #2

Closed
jester-vergara opened this issue Aug 19, 2019 · 1 comment

Comments

@jester-vergara
Copy link
Owner

$ terraform version
Terraform v0.12.6

  • provider.aws v2.24.0
    jvergara@DESKTOP-6TT1CHF:~/ethos$
Error: Incorrect attribute value type

  on load_balancers.tf line 3, in resource "aws_elb" "terraform-blue-green":
   3:   subnets         = ["${aws_subnet.terraform-blue-green.*.id}"]

Inappropriate value for attribute "subnets": element 0: string required.
@jester-vergara
Copy link
Owner Author

@sonianara You can always unwrap value between [ and ] to make it like this:

subnet_ids = "${aws_subnet.priv_subnet.*.id}"

terraform-aws-modules/terraform-aws-vpc#271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant