Skip to content

Latest commit

 

History

History
55 lines (45 loc) · 5.35 KB

File metadata and controls

55 lines (45 loc) · 5.35 KB

Partner Interconnect module

This module implements the recommendation proposed in Establishing 99.99% Availability for Partner Interconnect.

Prerequisites

  1. Provisioning of four VLAN attachments in the Hub project in the specified environment. That would be the prj-{p|n|d}-shared-{base|restricted} under corresponding environment's folder and prj-c-dns-hub under the folder fldr-common.

Usage

  1. Rename partner_interconnect.tf.example to partner_interconnect.tf in the shared envs folder in 3-networks-dual-svpc/envs/shared
  2. Rename partner_interconnect.auto.tfvars.example to partner_interconnect.auto.tfvars in the shared envs folder in 3-networks-dual-svpc/envs/shared
  3. Update the file interconnect.tf with values that are valid for your environment for the interconnects, locations, candidate subnetworks, vlan_tag8021q and peer info.
  4. Rename partner_interconnect.tf.example to partner_interconnect.tf in the base-env folder in 3-networks-dual-svpc/modules/base_env .
  5. Update the enable_partner_interconnect to true in each main.tf file in the environment folder in 3-networks-dual-svpc/envs/<environment> .
  6. Update the file partner_interconnect.tf with values that are valid for your environment for the VLAN attachments, locations.

Inputs

Name Description Type Default Required
attachment_project_id the Interconnect project ID. string n/a yes
cloud_router_labels A map of suffixes for labelling vlans with four entries like "vlan_1" => "suffix1" with keys from vlan_1 to vlan_4. map(string) {} no
preactivate Preactivate Partner Interconnect attachments, works only for level3 Partner Interconnect string false no
region1 First subnet region. The Partner Interconnect module only configures two regions. string n/a yes
region1_interconnect1_location Name of the interconnect location used in the creation of the Interconnect for the first location of region1 string n/a yes
region1_interconnect1_onprem_dc Name of the on premisses data center used in the creation of the Interconnect for the first location of region1. string n/a yes
region1_interconnect2_location Name of the interconnect location used in the creation of the Interconnect for the second location of region1 string n/a yes
region1_interconnect2_onprem_dc Name of the on premisses data center used in the creation of the Interconnect for the second location of region1. string n/a yes
region1_router1_name Name of the Router 1 for Region 1 where the attachment resides. string n/a yes
region1_router2_name Name of the Router 2 for Region 1 where the attachment resides. string n/a yes
region2 Second subnet region. The Partner Interconnect module only configures two regions. string n/a yes
region2_interconnect1_location Name of the interconnect location used in the creation of the Interconnect for the first location of region2 string n/a yes
region2_interconnect1_onprem_dc Name of the on premisses data center used in the creation of the Interconnect for the first location of region2. string n/a yes
region2_interconnect2_location Name of the interconnect location used in the creation of the Interconnect for the second location of region2 string n/a yes
region2_interconnect2_onprem_dc Name of the on premisses data center used in the creation of the Interconnect for the second location of region2. string n/a yes
region2_router1_name Name of the Router 1 for Region 2 where the attachment resides. string n/a yes
region2_router2_name Name of the Router 2 for Region 2 where the attachment resides string n/a yes
vpc_name Label to identify the VPC associated with shared VPC that will use the Interconnect. string n/a yes

Outputs

Name Description
interconnect_attachment1_region1 The interconnect attachment 1 for region 1
interconnect_attachment1_region1_customer_router_ip_address IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
interconnect_attachment1_region2 The interconnect attachment 1 for region 2
interconnect_attachment1_region2_customer_router_ip_address IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
interconnect_attachment2_region1 The interconnect attachment 2 for region 1
interconnect_attachment2_region1_customer_router_ip_address IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
interconnect_attachment2_region2 The interconnect attachment 2 for region 2
interconnect_attachment2_region2_customer_router_ip_address IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.