Skip to content

Latest commit

 

History

History

vpc-peering-accepter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

vpc-peering-accepter

This module creates following resources.

  • aws_vpc_peering_connection_accepter
  • aws_vpc_peering_connection_options

Requirements

Name Version
terraform >= 1.6
aws >= 4.29

Providers

Name Version
aws 5.22.0

Modules

Name Source Version
resource_group tedilabs/misc/aws//modules/resource-group ~> 0.10.0

Resources

Name Type
aws_vpc_peering_connection_accepter.this resource
aws_vpc_peering_connection_options.this resource
aws_caller_identity.this data source
aws_region.this data source
aws_vpc_peering_connection.this data source

Inputs

Name Description Type Default Required
name (Required) Desired name for the VPC Peering resources. string n/a yes
peering_connection (Required) The information of the VPC Peering Connection to accept. The given filters must match exactly one VPC peering connection. peering_connection as defined below.
(Optional) id - The VPC Peering Connection ID to manage.
(Optional) requester_vpc - The information of the requester VPC. requester_vpc as defined below.
(Optional) id - The ID of the requester VPC.
(Optional) region - The region of the VPC with which you are creating the VPC Peering Connection.
(Optional) account - The AWS account ID of the owner of the peer VPC.
(Optional) accepter_vpc - The information of the accepter VPC. accepter_vpc as defined below.
(Optional) id - The ID of the accepter VPC.
account.
object({
id = optional(string)
requester_vpc = optional(object({
id = optional(string)
region = optional(string)
account = optional(string)

ipv4_cidr = optional(string)
}), {})
accepter_vpc = optional(object({
id = optional(string)

ipv4_cidr = optional(string)
}), {})
})
n/a yes
allow_remote_vpc_dns_resolution (Optional) Whether to allow a accepter VPC to resolve public DNS hostnames to private IP addresses when queried from instances in the requester VPC. Defaults to false. bool false no
module_tags_enabled (Optional) Whether to create AWS Resource Tags for the module informations. bool true no
resource_group_description (Optional) The description of Resource Group. string "Managed by Terraform." no
resource_group_enabled (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. bool true no
resource_group_name (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws. string "" no
tags (Optional) A map of tags to add to all resources. map(string) {} no

Outputs

Name Description
accepter_vpc The accepter information including AWS Account ID, Region, VPC ID.
allow_remote_vpc_dns_resolution Whether to allow a accepter VPC to resolve public DNS hostnames to private IP addresses when queried from instances in the requester VPC.
id The ID of the VPC Peering Connection.
name The VPC Peering name.
requester_vpc The requester information including AWS Account ID, Region, VPC ID.
status The status of the VPC Peering Connection request.