-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from grem11n/cross-region-peering
Create cross-region peering
- Loading branch information
Showing
5 changed files
with
153 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
data "aws_caller_identity" "current" {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,67 @@ | ||
variable "owner_account_id" { | ||
description = "AWS owner account ID" | ||
description = "AWS owner account ID: string" | ||
default = "" | ||
} | ||
|
||
variable "vpc_peer_id" { | ||
description = "Peer VPC ID" | ||
variable "peer_vpc_id" { | ||
description = "Peer VPC ID: string" | ||
default = "" | ||
} | ||
|
||
variable "this_vpc_id" { | ||
description = "This VPC ID" | ||
description = "This VPC ID: string" | ||
default = "" | ||
} | ||
|
||
variable "cross_region_peering" { | ||
description = "Is it a cross region peering: bool" | ||
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" | ||
description = "A list of private route tables: list" | ||
default = [] | ||
} | ||
|
||
variable "public_route_table_ids" { | ||
type = "list" | ||
description = "A list of public route tables" | ||
description = "A list of public route tables: list" | ||
default = [] | ||
} | ||
|
||
variable "peer_cidr_block" { | ||
description = "Peer VPC CIDR block" | ||
description = "Peer VPC CIDR block: string" | ||
default = "" | ||
} | ||
|
||
variable "auto_accept_peering" { | ||
description = "Auto accept peering connection" | ||
description = "Auto accept peering connection: bool" | ||
default = false | ||
} | ||
|
||
variable "create_peering" { | ||
description = "Create peering connection, 0 to not create" | ||
default = 1 | ||
description = "Create peering connection, 0 to not create: bool" | ||
default = true | ||
} | ||
|
||
variable "peering_id" { | ||
description = "Provide already existing peering connection id" | ||
default = "" | ||
description = "Provide already existing peering connection id" | ||
default = "" | ||
} | ||
|
||
variable "tags" { | ||
description = "Tags: map" | ||
type = "map" | ||
default = {} | ||
} |