Validate
Progress checklist
Overview
Section titled “Overview”Joint gate after each hub’s own validate. Two mirrored hubs, no NFW yet.
Compare
Section titled “Compare”-
Dump both output sets:
Terminal window ( cd environment/sandbox/ap-southeast-2/hub && \echo "=== Sydney ===" && \terraform output -raw region && \terraform output -raw transit_gateway_id && \terraform output -raw inspection_vpc_cidr && \terraform output -raw enable_network_firewall && \terraform output local_spoke_cidrs && \terraform output remote_spoke_cidrs )( cd environment/sandbox/ap-southeast-6/hub && \echo "=== Auckland ===" && \terraform output -raw region && \terraform output -raw transit_gateway_id && \terraform output -raw inspection_vpc_cidr && \terraform output -raw enable_network_firewall && \terraform output local_spoke_cidrs && \terraform output remote_spoke_cidrs )=== Sydney ===ap-southeast-2tgw-04fc7f3ccf224fdf210.255.0.0/24falsetolist(["10.255.1.0/24","10.255.2.0/24",])tolist(["10.254.1.0/24","10.254.2.0/24",])=== Auckland ===ap-southeast-6tgw-04db3776f3a795ce710.254.0.0/24falsetolist(["10.254.1.0/24","10.254.2.0/24",])tolist(["10.255.1.0/24","10.255.2.0/24",]) -
Assert spoke CIDR lists mirror:
Terminal window SYD_LOCAL=$(cd environment/sandbox/ap-southeast-2/hub && terraform output -json local_spoke_cidrs)SYD_REMOTE=$(cd environment/sandbox/ap-southeast-2/hub && terraform output -json remote_spoke_cidrs)AKL_LOCAL=$(cd environment/sandbox/ap-southeast-6/hub && terraform output -json local_spoke_cidrs)AKL_REMOTE=$(cd environment/sandbox/ap-southeast-6/hub && terraform output -json remote_spoke_cidrs)test "$SYD_LOCAL" = "$AKL_REMOTE" && test "$AKL_LOCAL" = "$SYD_REMOTE" \&& echo "spoke CIDRs mirror OK" \|| echo "spoke CIDRs do NOT mirror"spoke CIDRs mirror OK -
Both TGWs available:
Terminal window export AWS_PROFILE=YOUR_HUB_PROFILESYD_TGW=$(cd environment/sandbox/ap-southeast-2/hub && terraform output -raw transit_gateway_id)AKL_TGW=$(cd environment/sandbox/ap-southeast-6/hub && terraform output -raw transit_gateway_id)aws ec2 describe-transit-gateways --region ap-southeast-2 \--transit-gateway-ids "$SYD_TGW" \--query 'TransitGateways[0].{State:State,Asn:Options.AmazonSideAsn}' \--output tableaws ec2 describe-transit-gateways --region ap-southeast-6 \--transit-gateway-ids "$AKL_TGW" \--query 'TransitGateways[0].{State:State,Asn:Options.AmazonSideAsn}' \--output table| Asn | State || 65001 | available || Asn | State || 65002 | available | -
NFW still off on both:
Terminal window terraform -chdir=environment/sandbox/ap-southeast-2/hub output -raw enable_network_firewallterraform -chdir=environment/sandbox/ap-southeast-6/hub output -raw enable_network_firewallfalsefalse