Skip to content

Configure Variables

Copy and edit terraform.tfvars. Replace every # REPLACE value:

aws_region = "ap-southeast-1"
gcp_region = "asia-southeast1"
gcp_project_id = "your-gcp-project-id" # REPLACE
gcp_transport_name = "demo-interconnect-transport"
aws_vpc_cidr = "10.0.0.0/16" # advertised toward GCP
aws_subnet_cidr = "10.0.1.0/24"
aws_dx_gateway_asn = 64512 # private ASN for the DX Gateway
gcp_vpc_cidr = "10.1.0.0/16" # advertised toward AWS

TERRAFORM
HashiCorp Terraform — infrastructure-as-code tool used to provision the base AWS and GCP resources in this demo.
generates an ED25519 SSH key pair for the GCE
Google Compute Engine — GCP virtual machine instances. The demo GCE VM is reachable via IAP tunnel SSH.
debian user automatically. You’ll retrieve the private key after apply (see Step 7).

VariableDescription
aws_regionAWS region (Interconnect source)
gcp_regionPaired GCP region (Interconnect destination)
gcp_project_idGCP project ID
gcp_transport_nameName for the gcloud transport resource
aws_vpc_cidrAWS VPC CIDR — advertised to GCP
aws_subnet_cidrAWS private subnet for EC2
aws_dx_gateway_asnPrivate ASN for the Direct Connect Gateway
gcp_vpc_cidrGCP subnet CIDR — advertised to AWS

SSH to GCE uses a key pair generated by Terraform (tls_private_key); no variable required.