--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/e495bd4b-edd9-4c8c-acf0-25e0ccc6cb58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
When you say "the vpc module" do you mean the tf_aws_vpc community module? I'm assuming yes.To reference the private_subnets from the module you would do "${module.my_vpc.private_subnets[0]}" for the first element in the list. And 1, 2 .. N for each following item.Here is the line from the module https://github.com/terraform-community-modules/tf_aws_vpc/blob/master/outputs.tf#L1and here's a link to the interpolation documentation https://www.terraform.io/docs/configuration/interpolation.html.
--Lowe Schmidt | +46 723 867 157
On 14 February 2017 at 04:49, gitted <sahme...@gmail.com> wrote:
I am using the vpc module, and I am creating 3 private subnets:How would I reference the 1st, 2nd or 3rd item in the list?
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/0d228f6f-343c-4540-a48c-00e6d5b3c282%40googlegroups.com.