vpc-peering-multi-account

cloudposse/vpc-peering-multi-account/aws

Terraform Module HCL AWS

Terraform module to provision a VPC peering across multiple VPCs in different accounts by using multiple providers

Install
module "vpc-peering-multi-account" {
source = "cloudposse/vpc-peering-multi-account/aws"
version = "2.0.0"
}
plain text: /constructs/tfmod-cloudposse-vpc-peering-multi-account-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform module to create a peering connection between any two VPCs existing in different AWS accounts. This module supports performing this action from a 3rd account (e.g. a "root" account) by specifying the roles to assume for each member account. IMPORTANT: AWS allows a multi-account VPC Peering Connection to be deleted from either the requester's or accepter's side. However, Terraform only allows the VPC Peering Connection to be deleted from the requester's side by removing the corresponding aws_vpc_peering_connection resource from your configuration. Read more about this on Terraform's documentation portal. Screenshots VPC Peering Connection in the AWS Web Console > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Ter

Inputs (31)
NameTypeDescriptionDefault
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'stnull
accepter_allow_remote_vpc_dns_resolutionboolAllow accepter VPC to resolve public DNS hostnames to private IP addresses when true
aws_route_create_timeoutstringTime to wait for AWS route creation specifed as a Go Duration, e.g. `2m`"5m"
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thinull
accepter_enabledboolFlag to enable/disable the accepter side of the peering connectiontrue
requester_allow_remote_vpc_dns_resolutionboolAllow requester VPC to resolve public DNS hostnames to private IP addresses whentrue
accepter_subnet_tagsmap(string)Only add peer routes to accepter VPC route tables of subnets matching these tags{}
enabledboolSet to false to prevent the module from creating any resourcesnull
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` null
aws_route_delete_timeoutstringTime to wait for AWS route deletion specifed as a Go Duration, e.g. `5m`"5m"
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
accepter_vpc_idstringAccepter VPC ID filter""
accepter_vpc_tagsmap(string)Accepter VPC Tags filter{}
add_attribute_tagboolIf `true` will add additional attribute tag to the requester and accceptor resoutrue
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
requester_subnet_tagsmap(string)Only add peer routes to requester VPC route tables of subnets matching these tag{}
requester_vpc_tagsmap(string)Requester VPC Tags filter{}
Outputs (5)
requester_accept_status — Requester VPC peering connection request status
accepter_connection_id — Accepter VPC peering connection ID
accepter_accept_status — Accepter VPC peering connection request status
accepter_subnet_route_table_map — Map of accepter VPC subnet IDs to route table IDs
requester_connection_id — Requester VPC peering connection ID
Resources (4)
aws_routeaws_vpc_peering_connectionaws_vpc_peering_connection_accepteraws_vpc_peering_connection_options
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud AWS
★ Stars154
Forks97
Total downloads1.1M
Inputs31
Outputs5
Resources4
Examples2
LicenseApache-2.0
Namespacecloudposse
Updated