cloudposse / terraform-aws-vpc-peering

Terraform module to create a peering connection between two VPCs in the same AWS account.

Home Page:https://cloudposse.com/accelerate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0.12 support

andrewb3000 opened this issue · comments

Are there any plans to add support for terraform 0.12?
Currently getting following errors:

Error: Missing resource instance key

  on modules/terraform-aws-vpc-peering/main.tf line 46, in data "aws_subnet_ids" "requestor":
  46:   vpc_id = "${data.aws_vpc.requestor.id}"

Because data.aws_vpc.requestor has "count" set, its attributes must be
accessed on specific instances.

For example, to correlate with indices of a referring resource, use:
    data.aws_vpc.requestor[count.index]


Error: Missing resource instance key

  on modules/terraform-aws-vpc-peering/main.tf line 59, in data "aws_subnet_ids" "acceptor":
  59:   vpc_id = "${data.aws_vpc.acceptor.id}"

Because data.aws_vpc.acceptor has "count" set, its attributes must be accessed
on specific instances.

For example, to correlate with indices of a referring resource, use:
    data.aws_vpc.acceptor[count.index]

when will this be available . I did some quick fixes but get issues with duplicate routes being added to routetable of acceptor and requestor

Hi @goruha / @aknysh
Can this PR get reviewed and this module to be upgraded to 0.12?
#14
Thanks