vpc-peering

cloudposse/vpc-peering/aws

Terraform Module HCL AWS

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

Install
module "vpc-peering" {
source = "cloudposse/vpc-peering/aws"
version = "1.0.1"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform module to create a peering connection between two VPCs Screenshots VPC Peering Connection in the AWS Web Console > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage For a complete example, see examples/complete. For automated tests of the complete example using bats and Terratest (which tests and deploys the example on AWS), see test. Using VPC IDs ``hcl module "vpc_peering" { source = "cloudposse/vpc-peering/aws" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" namespace = "e

Inputs (32)
NameTypeDescriptionDefault
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'stnull
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thinull
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will null
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
acceptor_vpc_idstringAcceptor VPC ID""
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` null
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
requestor_allow_remote_vpc_dns_resolutionboolAllow requestor VPC to resolve public DNS hostnames to private IP addresses whentrue
requestor_ignore_cidrslist(string)A list of CIDR blocks from the requestor VPC to ignore[]
enabledboolSet to false to prevent the module from creating any resourcesnull
requestor_vpc_tagsmap(string)Requestor VPC tags{}
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by null
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
acceptor_vpc_tagsmap(string)Acceptor VPC tags{}
acceptor_route_table_tagsmap(string)Only add peer routes to acceptor VPC route tables matching these tags{}
update_timeoutstringVPC peering connection update timeout. For more details, see https://www.terrafo"3m"
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
Outputs (2)
accept_status — The status of the VPC peering connection request
connection_id — VPC peering connection ID
Resources (2)
aws_routeaws_vpc_peering_connection
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud AWS
★ Stars142
Forks112
Total downloads615.2k
Inputs32
Outputs2
Resources2
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated