Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

vpc-peering-requester

This module creates following resources.

  • aws_vpc_peering_connection
  • aws_vpc_peering_connection_options (optional)

Requirements

Name Version
terraform >= 1.12
aws >= 6.12

Providers

Name Version
aws 6.20.0

Modules

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

Resources

Name Type
aws_vpc_peering_connection.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
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 creating the VPC Peering Connection. Defaults to the region of the current provider.
(Optional) account - The AWS account ID of the owner of the peer VPC. Defaults to the current
account.
object({
vpc = string
region = optional(string)
account = 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.
account.
object({
vpc = string
})
n/a yes
allow_remote_vpc_dns_resolution (Optional) 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. bool false no
module_tags_enabled (Optional) Whether to create AWS Resource Tags for the module informations. bool true no
region (Optional) The region in which to create the module resources. If not provided, the module resources will be created in the provider's configured region. string null 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.
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.
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.
resource_group The resource group created to manage resources in this module.
status The status of the VPC Peering Connection request.