Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

vpc-peering

This module creates following resources.

  • aws_vpc_peering_connection
  • aws_vpc_peering_connection_accepter
  • aws_vpc_peering_connection_options

Requirements

Name Version
terraform >= 1.12
aws >= 6.12

Providers

Name Version
aws.accepter 6.20.0
aws.requester 6.20.0

Modules

Name Source Version
resource_group_accepter tedilabs/misc/aws//modules/resource-group ~> 0.12.0
resource_group_requester tedilabs/misc/aws//modules/resource-group ~> 0.12.0

Resources

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

Inputs

Name Description Type Default Required
accepter (Required) The configuration of the accepter VPC. accepter as defined below.
(Required) vpc - The ID of the VPC with which you are creating the VPC Peering Connection.
(Optional) region - The region of the VPC with which you are accepting the VPC Peering request. Defaults to the region of the accepter provider.
object({
vpc = string
region = optional(string)
})
n/a yes
name (Required) Desired name for the VPC Peering resources. string n/a yes
requester (Required) The configuration of the requester VPC. requester as defined below.
(Required) vpc - The ID of the requester VPC.
(Optional) region - The region of the VPC with which you are creating the VPC Peering request. Defaults to the region of the requester provider.
object({
vpc = string
region = optional(string)
})
n/a yes
accepter_options (Optional) The accepter options of the VPC Peering Connection. accepter_options as defined below.
(Optional) 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. Defaults to false.
(Optional) tags - A map of tags to assign to the accepter VPC Peering resources.
object({
allow_remote_vpc_dns_resolution = optional(bool, false)
tags = optional(map(string), {})
})
{} no
module_tags_enabled (Optional) Whether to create AWS Resource Tags for the module informations. bool true no
requester_options (Optional) The requester options of the VPC Peering Connection. requester_options as defined below.
(Optional) allow_remote_vpc_dns_resolution - Whether to allow a requester VPC to resolve public DNS hostnames to private IP addresses when queried from instances in the accepter VPC. Defaults to false.
(Optional) tags - A map of tags to assign to the requester VPC Peering resources.
object({
allow_remote_vpc_dns_resolution = optional(bool, false)
tags = optional(map(string), {})
})
{} no
resource_group (Optional) A configurations of Resource Group for this module. resource_group as defined below.
(Optional) enabled - Whether to create Resource Group to find and group AWS resources which are created by this module. Defaults to true.
(Optional) name - 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. If not provided, a name will be generated using the module name and instance name.
(Optional) description - The description of Resource Group. Defaults to Managed by Terraform..
object({
enabled = optional(bool, true)
name = optional(string, "")
description = optional(string, "Managed by Terraform.")
})
{} no
tags (Optional) A map of tags to add to all resources. map(string) {} no

Outputs

Name Description
accepter The accepter information including AWS Account ID, Region, VPC ID.
accepter_options The accepter options of the VPC Peering Connection.
id The ID of the VPC Peering Connection.
name The VPC Peering name.
region The AWS region this module resources resides in.
requester The requester information including AWS Account ID, Region, VPC ID.
requester_options The requester options of the VPC Peering Connection.
status The status of the VPC Peering Connection request.