Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 2.15 KB

README.md

File metadata and controls

60 lines (43 loc) · 2.15 KB

Terraform vpc-peering Module

This Terraform module sets up VPC peering between two VPCs in AWS. It creates a connection between VPC created with our VPC and RDS modules. Additionally, it sets up the necessary routes to enable communication between the VPCs.

Usage

  module "peering" {
    source = "git::https://github.com/FlowFuse/terraform-aws-flowfuse.git//vpc-peering?ref=main"

    namespace = "my-company"
    stage     = "production"

    tags = {
      Environment = "production"
      Project = "my-project"
      terraform = true
    }
  }

Requirements

Name Version
aws ~> 5.48

Providers

Name Version
aws 5.44.0

Modules

Name Source Version
vpc_peering cloudposse/vpc-peering/aws 1.0.0

Resources

Name Type
aws_vpc.database data source
aws_vpc.main data source

Inputs

Name Description Type Default Required
namespace ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique string n/a yes
stage ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release' string n/a yes
tags A map of tags to add to all resources map(string) {} no

Outputs

No outputs.