Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 31, 2021
1 parent 926ca3c commit e65b6e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions peer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ locals {


locals {
self_vpc_id = var.vpc_id
peer_vpc_id = var.peer_vpc_id

self_cidr_block = var.vpc_cidr_block != "" ? var.vpc_cidr_block : data.aws_vpc.self_vpc.cidr_block
peer_cidr_block = var.peer_vpc_cidr_block != "" ? var.peer_vpc_cidr_block : data.aws_vpc.peer_vpc.cidr_block

Expand Down Expand Up @@ -120,8 +123,8 @@ resource "aws_vpc_peering_connection" "self" {
provider = aws.self
vpc_id = local.self_vpc_id
peer_vpc_id = local.peer_vpc_id
peer_owner_id = var.peer_account_id
peer_region = var.peer_region
peer_owner_id = local.peer_account_id
peer_region = local.peer_region
auto_accept = false

tags = local.self_tags
Expand Down

0 comments on commit e65b6e7

Please sign in to comment.