vpc-peering-cross-accounts-accepter
View SourceRelease NotesThis module manages the accepter's side of the VPC Peering Connection between two differents accounts that you control.
Requirements
| Name | Version |
|---|---|
| terraform | >= 1.0.0 |
Providers
| Name | Version |
|---|---|
| aws | n/a |
Modules
No modules.
Resources
| Name | Type |
|---|---|
| aws_route.this | resource |
| aws_vpc_peering_connection_accepter.this | resource |
| aws_vpc_peering_connection_options.this | resource |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| dns_resolution | Allow a local VPC to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC. | bool | false | no |
| link_to_local_classic | Allow a local linked EC2-Classic instance to communicate with instances in a peer VPC. | bool | false | no |
| link_to_remote_classic | Allow a local VPC to communicate with a linked EC2-Classic instance in a peer VPC. | bool | false | no |
| requester_vpc_cidr | The VPC CIDR of the requester VPC. | string | n/a | yes |
| route_creation_timeout | The timeout for the creation of the Route Tables. It defines how long to wait for a route table to be created before considering the operation failed. Ref: https://www.terraform.io/language/resources/syntax#operation-timeouts | string | "5m" | no |
| route_deletion_timeout | The timeout for the deletion of the Route Tables. It defines how long to wait for a route table to be deleted before considering the operation failed. Ref: https://www.terraform.io/language/resources/syntax#operation-timeouts | string | "5m" | no |
| route_tables | List of route tables to add routes to. | list(string) | n/a | yes |
| route_update_timeout | The timeout for the update of the Route Tables. It defines how long to wait for a route table to be updated before considering the operation failed. Ref: https://www.terraform.io/language/resources/syntax#operation-timeouts | string | "2m" | no |
| tags | A map of tags to assign to created resources. | map(string) | {} | no |
| vpc_peering_connection_id | The VPC Peering Connection ID to manage. | string | n/a | yes |
Outputs
| Name | Description |
|---|---|
| vpc_peering_accept_status | The status of the VPC Peering Connection request. |
| vpc_peering_connection_id | Peering connection ID. |
Sample Usage
- Terraform
- Terragrunt
# ------------------------------------------------------------------------------------------------------
# DEPLOY GRUNTWORK'S VPC-PEERING-CROSS-ACCOUNTS-ACCEPTER MODULE
# ------------------------------------------------------------------------------------------------------
module "vpc_peering_cross_accounts_accepter" {
source = "git::git@github.com:gruntwork-io/terraform-aws-vpc.git//modules/vpc-peering-cross-accounts-accepter?ref=v0.22.4"
# ----------------------------------------------------------------------------------------------------
# REQUIRED VARIABLES
# ----------------------------------------------------------------------------------------------------
# The VPC CIDR of the requester VPC.
requester_vpc_cidr = <INPUT REQUIRED>
# List of route tables to add routes to.
route_tables = <INPUT REQUIRED>
# The VPC Peering Connection ID to manage.
vpc_peering_connection_id = <INPUT REQUIRED>
# ----------------------------------------------------------------------------------------------------
# OPTIONAL VARIABLES
# ----------------------------------------------------------------------------------------------------
# Allow a local VPC to resolve public DNS hostnames to private IP addresses when
# queried from instances in the peer VPC.
dns_resolution = false
# Allow a local linked EC2-Classic instance to communicate with instances in a
# peer VPC.
link_to_local_classic = false
# Allow a local VPC to communicate with a linked EC2-Classic instance in a peer
# VPC.
link_to_remote_classic = false
# The timeout for the creation of the Route Tables. It defines how long to wait
# for a route table to be created before considering the operation failed. Ref:
# https://www.terraform.io/language/resources/syntax#operation-timeouts
route_creation_timeout = "5m"
# The timeout for the deletion of the Route Tables. It defines how long to wait
# for a route table to be deleted before considering the operation failed. Ref:
# https://www.terraform.io/language/resources/syntax#operation-timeouts
route_deletion_timeout = "5m"
# The timeout for the update of the Route Tables. It defines how long to wait for
# a route table to be updated before considering the operation failed. Ref:
# https://www.terraform.io/language/resources/syntax#operation-timeouts
route_update_timeout = "2m"
# A map of tags to assign to created resources.
tags = {}
}
# Coming soon!
Reference
- Inputs
- Outputs
Required
requester_vpc_cidrstringThe VPC CIDR of the requester VPC.
route_tableslist(string)List of route tables to add routes to.
The VPC Peering Connection ID to manage.
Optional
dns_resolutionboolAllow a local VPC to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC.
falseAllow a local linked EC2-Classic instance to communicate with instances in a peer VPC.
falseAllow a local VPC to communicate with a linked EC2-Classic instance in a peer VPC.
falseroute_creation_timeoutstringThe timeout for the creation of the Route Tables. It defines how long to wait for a route table to be created before considering the operation failed. Ref: https://www.terraform.io/language/resources/syntax#operation-timeouts
"5m"route_deletion_timeoutstringThe timeout for the deletion of the Route Tables. It defines how long to wait for a route table to be deleted before considering the operation failed. Ref: https://www.terraform.io/language/resources/syntax#operation-timeouts
"5m"route_update_timeoutstringThe timeout for the update of the Route Tables. It defines how long to wait for a route table to be updated before considering the operation failed. Ref: https://www.terraform.io/language/resources/syntax#operation-timeouts
"2m"tagsmap(string)A map of tags to assign to created resources.
{}The status of the VPC Peering Connection request.
Peering connection ID.