Skip to content

Commit

Permalink
Deprecate DNS options workaround (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
grem11n committed Nov 7, 2019
1 parent 32ccbcb commit aff4255
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ provider "aws" {
alias = "peer"
}

# Local Values required for inter-region peering workaround
# See https://github.com/terraform-providers/terraform-provider-aws/issues/6730
locals {
this_region = data.aws_region.this.name
peer_region = data.aws_region.peer.name
Expand Down Expand Up @@ -47,10 +45,6 @@ resource "aws_vpc_peering_connection_options" "this" {
provider = "aws.this"
vpc_peering_connection_id = aws_vpc_peering_connection_accepter.peer_accepter.id

# See https://github.com/terraform-providers/terraform-provider-aws/issues/6730
# Until this is fixed, we must not try and set any options for cross-region peering.
count = local.this_region == local.peer_region ? 1 : 0

requester {
allow_remote_vpc_dns_resolution = var.this_dns_resolution
allow_classic_link_to_remote_vpc = var.this_link_to_peer_classic
Expand All @@ -62,10 +56,6 @@ resource "aws_vpc_peering_connection_options" "accepter" {
provider = "aws.peer"
vpc_peering_connection_id = aws_vpc_peering_connection_accepter.peer_accepter.id

# See https://github.com/terraform-providers/terraform-provider-aws/issues/6730
# Until this is fixed, we must not try and set any options for cross-region peering.
count = local.this_region == local.peer_region ? 1 : 0

accepter {
allow_remote_vpc_dns_resolution = var.peer_dns_resolution
allow_classic_link_to_remote_vpc = var.peer_link_to_peer_classic
Expand Down

0 comments on commit aff4255

Please sign in to comment.