Validate
Progress checklist
Overview
Section titled “Overview”Joint gate after each Region’s prod local checks. Then re-apply hub-peering
so prod CIDRs and syd-prod / akl-prod DNS are published.
Workloads (prod) Sydney → local HTTP + DNS Workloads (prod) Auckland → local HTTP + DNS → Workloads (prod) Validate (here) → hub-peering enable_prod_workloads=true → Prove mesh (include prod) / NFW chapterCompare
Section titled “Compare”-
Side-by-side outputs:
Terminal window ( cd environment/sandbox/ap-southeast-2/workload-prod && \echo "=== Sydney prod ===" && terraform output -raw vpc_cidr && \terraform output -raw test_host_private_ip && \terraform output -raw test_host_instance_id )( cd environment/sandbox/ap-southeast-6/workload-prod && \echo "=== Auckland prod ===" && terraform output -raw vpc_cidr && \terraform output -raw test_host_private_ip && \terraform output -raw test_host_instance_id )=== Sydney prod ===10.255.2.0/2410.255.2.69i-01780abcba294ad2f=== Auckland prod ===10.254.2.0/2410.254.2.22i-072c72766be1110b3 -
Re-check SSM Online on both:
Terminal window export AWS_PROFILE=YOUR_PROD_WORKLOAD_PROFILESYD_PROD_ID=$(cd environment/sandbox/ap-southeast-2/workload-prod && terraform output -raw test_host_instance_id)AKL_PROD_ID=$(cd environment/sandbox/ap-southeast-6/workload-prod && terraform output -raw test_host_instance_id)aws ssm describe-instance-information --region ap-southeast-2 \--filters "Key=InstanceIds,Values=$SYD_PROD_ID" \--query 'InstanceInformationList[0].PingStatus' --output textaws ssm describe-instance-information --region ap-southeast-6 \--filters "Key=InstanceIds,Values=$AKL_PROD_ID" \--query 'InstanceInformationList[0].PingStatus' --output textOnlineOnline -
Publish prod into peering / DNS:
Terminal window cd environment/sandbox/ap-southeast-2/hub-peering# persist in terraform.tfvars: enable_prod_workloads = trueterraform apply -var='enable_prod_workloads=true' -
Optional — same-Region dev ↔ prod (Sydney), before or after NFW:
Terminal window export AWS_PROFILE=YOUR_DEV_WORKLOAD_PROFILESYD_DEV_ID=$(cd environment/sandbox/ap-southeast-2/workload-dev && terraform output -raw test_host_instance_id)SYD_PROD_IP=$(cd environment/sandbox/ap-southeast-2/workload-prod && terraform output -raw test_host_private_ip)aws ssm send-command --region ap-southeast-2 --instance-ids "$SYD_DEV_ID" \--document-name AWS-RunShellScript \--parameters 'commands=["ping -c3 '"$SYD_PROD_IP"'; curl -sS -m 5 http://'"$SYD_PROD_IP"'/"]' \--query 'Command.CommandId' --output textExpect: ICMP replies and the demo HTML from
10.255.2.69.