diff --git a/README.md b/README.md index ee3ddf4..6b37e1b 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ These types of resources are supported: Usage ----- -### Single Region Peering +### Single Region Peering **Notice**: You need to declare both providers even with single region peering. ```hc1 @@ -34,9 +34,6 @@ module "vpc_single_region_peering" { this_vpc_id = "vpc-00000000" peer_vpc_id = "vpc-11111111" cross_region_peering = false - private_route_table_ids = ["rtb-0000000"] - public_route_table_ids = ["rtb-1111111"] - peer_cidr_block = "10.1.0.1/24" auto_accept_peering = true create_peering = true @@ -61,9 +58,6 @@ module "vpc_single_region_peering" { this_vpc_id = "vpc-00000000" peer_vpc_id = "vpc-11111111" cross_region_peering = false - private_route_table_ids = ["rtb-0000000"] - public_route_table_ids = ["rtb-1111111"] - peer_cidr_block = "10.1.0.1/24" auto_accept_peering = true create_peering = 0 peering_id = "pcx-00000000" @@ -86,9 +80,6 @@ module "vpc_cross_region_peering" { this_vpc_id = "vpc-00000000" peer_vpc_id = "vpc-11111111" cross_region_peering = true - private_route_table_ids = ["rtb-0000000"] - public_route_table_ids = ["rtb-1111111"] - peer_cidr_block = "10.1.0.1/24" auto_accept_peering = true create_peering = true diff --git a/outputs.tf b/outputs.tf index 012586b..9614cd8 100644 --- a/outputs.tf +++ b/outputs.tf @@ -24,8 +24,3 @@ output "peer_vpc_route_table" { description = "Public route tables" value = ["${local.peer_vpc_route_tables}"] } - -output "peer_cidr_block" { - description = "Peer CIDR block" - value = "${var.peer_cidr_block}" -} diff --git a/variables.tf b/variables.tf index d213116..a061b2a 100644 --- a/variables.tf +++ b/variables.tf @@ -18,33 +18,11 @@ variable "cross_region_peering" { default = false } -variable "peer_provider" { - description = "Provider alias for the peer: string" - default = "" -} - variable "peer_region" { description = "Peer Region Name e.g. us-east-1: string" default = "" } -variable "private_route_table_ids" { - type = "list" - description = "A list of private route tables: list" - default = [] -} - -variable "public_route_table_ids" { - type = "list" - description = "A list of public route tables: list" - default = [] -} - -variable "peer_cidr_block" { - description = "Peer VPC CIDR block: string" - default = "" -} - variable "auto_accept_peering" { description = "Auto accept peering connection: bool" default = false