Skip to content

dmytro-dorofeiev/terraform-aws-vpc-peering-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform vpc peering module

About

This terraform module allow you create AWS VPC peering connect between two different VPCs.

Examples

This example will created VPC Peering from dev to qa VPC.

Note: To use this module you have to have owner and accepter profile name configured in you ~/.aws/credentials and ~/.aws/config

module "vpc_peering_qa" {
  source               = "git::https://github.com/dmytro-dorofeiev/modules/terraform-aws-vpc-peering-module"
  owner_profile        = "dev"
  accepter_profile     = "qa"
  owner_vpc_id         = var.owner_vpc_id
  owner_route_names    = ["mgm"]
  accepter_vpc_id      = var.accepter_vpc_id
  accepter_route_names = ["web", "db"]
}

Requirements

No requirements.

Providers

Name Version
aws 3.54.0
aws.accepter 3.54.0

Modules

No modules.

Resources

Name Type
aws_route.accepter resource
aws_route.owner resource
aws_vpc_peering_connection.owner resource
aws_vpc_peering_connection_accepter.accepter resource
aws_caller_identity.accepter data source
aws_route_tables.accepter data source
aws_route_tables.owner data source
aws_vpc.accepter data source
aws_vpc.owner data source

Inputs

Name Description Type Default Required
accepter_profile AWS Profile any n/a yes
accepter_region AWS region for accepter vpc string "eu-west-1" no
accepter_route_names Accepter subnet names that should be routed set(string) n/a yes
accepter_vpc_id Accepter VPC Id any n/a yes
owner_profile AWS Profile any n/a yes
owner_region AWS region for owner vpc string "eu-west-1" no
owner_route_names Owner subnet names that should be routed set(string) n/a yes
owner_vpc_id Owner VPC Id any n/a yes

Outputs

No outputs.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages