StuartApp / terraform-aws-vpc-peering

Terraform module to handle AWS VPC Peering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-vpc-peering

Terraform Module for AWS VPC Peering

Usage

module "vpc-peering" {
  source = "cornfeedhobo/vpc-peering/aws"

  providers = {
    "aws.requester" = "aws.ash"
    "aws.accepter"  = "aws.pdx"
  }

  // see Inputs for the rest of the configuration values
}

Requirements

Name Version
terraform >= 0.15
aws ~> 3.0

Providers

Name Version
aws.accepter ~> 3.0
aws.requester ~> 3.0

Modules

No modules.

Resources

Name Type
aws_route.accepter resource
aws_route.requester resource
aws_vpc_peering_connection.requester resource
aws_vpc_peering_connection_accepter.accepter resource
aws_vpc_peering_connection_options.accepter resource
aws_vpc_peering_connection_options.requester resource

Inputs

Name Description Type Default Required
accepter-account_id The AWS Account ID of the 'requester' VPC string n/a yes
accepter-allow_remote_vpc_dns_resolution Toggle the allowance of DNS resolution through the 'requester' bool false no
accepter-route_table_ids The VPC Route Table IDs of the 'accepter' VPC list(string) n/a yes
accepter-vpc_cidr_blocks The VPC CIDR block of the 'accepter' VPC list(string) n/a yes
accepter-vpc_id The VPC ID of the 'accepter' VPC string n/a yes
enabled Toggle the creation and destruction of all resources in this module bool true no
requester-allow_remote_vpc_dns_resolution Toggle the allowance of DNS resolution through the 'accepter' bool false no
requester-route_table_ids The VPC Route Table IDs of the 'requester' VPC list(string) n/a yes
requester-vpc_cidr_blocks The VPC CIDR block of the 'requester' VPC list(string) n/a yes
requester-vpc_id The VPC ID of the 'requester' VPC string n/a yes
tags Tags to attach to the peering resources map(string) {} no

Outputs

No outputs.

Documentation

This documentation file has been generated by terraform-docs.

Compatibility

terraform-docs compatiblity matrix with Terraform can be found below:

terraform-docs Terraform
>= 0.13 >= 0.15
>= 0.8, < 0.13 >= 0.12, < 0.15
< 0.8 < 0.12

Updating the README.md file

There is a template for terraform-docs in the root folder called .terraform-docs.yml. If you've updated the module, please run:

terraform-docs .

and commit the changes to README.md if any.

License

MIT

Is it any good?

Yes

About

Terraform module to handle AWS VPC Peering

License:MIT License


Languages

Language:HCL 100.0%