Skip to content

imketu/terraform-aws-vpc-peering

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

aws-vpc-peering

Opstree Solutions
Opstree Solutions

  • This repository consists of the Terraform module for AWS VPC Peering Service with in & cross region.
  • This project is a part of opstree's ot-aws initiative for terraform modules.

Usage

$   cat main.tf
/*-------------------------------------------------------*/
module "aws_vpc_peering" {
  source                                  = "../aws-vpc-peering"
  requester_region                        = "us-east-1"
  acceptor_region                    = "us-east-1"
  requester_vpc_cidr                      = "10.0.0.0/16"
  acceptor_vpc_cidr                       = "172.31.0.0/16"
  vpc_peering_connection_requester_name   = "requester"
  vpc_peering_connection_acceptor_name    = "acceptor"
}
/*-------------------------------------------------------*/
$   cat output.tf
/*-------------------------------------------------------*/
output "vpc_peering_id" {
  value = module.aws_vpc_peering.id
}
/*-------------------------------------------------------*/

Inputs

Name Description Type Default Required
requester_region The region of the requester VPC. string us-east-1 yes
accepter_region The region of the accepter VPC. string us-east-1 yes
requester_vpc_cidr The CIDR of the requester VPC. string 10.0.0.0/16 yes
accepter_vpc_cidr The CIDR of the accepter VPC. string 172.31.0.0/16 yes
vpc_peering_connection_requester_name The NAME of the requester VPC peering connection. string requester yes
vpc_peering_connection_accepter_name The NAME of the accepter VPC peering connection. string accepter yes

Outputs

Name Description
id The ID of the VPC Peering Connection

Related Projects

Check out these related projects.

  • network_skeleton - Terraform module for providing a general purpose Networking solution
  • security_group - Terraform module for creating dynamic Security groups
  • eks - Terraform module for creating elastic kubernetes cluster.
  • HA_ec2_alb - Terraform module for creating a Highly available setup of an EC2 instance with quick disater recovery.
  • HA_ec2 - Terraform module for creating a Highly available setup of an EC2 instance with quick disater recovery.
  • rolling_deployment - This terraform module will orchestrate rolling deployment.

Contributors

Shweta Tyagi
Shweta Tyagi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%