Auckland
Progress checklist
Overview
Section titled “Overview”Same shape as Sydney in Auckland: TGW ASN 65002, inspection VPC
10.254.0.0/24, dual route tables, RAM to dev + prod. NFW stays off.
-
Configure and apply:
Terminal window cd environment/sandbox/ap-southeast-6/hubcp terraform.tfvars.example terraform.tfvars# hub_profile, workload_account_ids = [dev, prod]# enable_network_firewall = false# firewall_rules_enabled = falseterraform initterraform apply -
Capture outputs:
Terminal window export AWS_PROFILE=YOUR_HUB_PROFILEAKL_TGW=$(terraform output -raw transit_gateway_id)terraform output -raw transit_gateway_idterraform output -raw inspection_vpc_idterraform output -raw inspection_vpc_cidrterraform output -raw inspection_attachment_idterraform output -raw enable_network_firewallterraform output -raw firewall_rules_enabledterraform output -raw spoke_association_route_table_idterraform output -raw no_inspection_route_table_idterraform output -raw inspection_route_table_idtgw-04db3776f3a795ce7vpc-0ad3fed6c0393729a10.254.0.0/24tgw-attach-0d4c6c5cb225f6768falsefalsetgw-rtb-0de1397f3982b6434 # spoke_association == no_inspectiontgw-rtb-0de1397f3982b6434tgw-rtb-088d989b87ff8da52
Validate
Section titled “Validate”-
Transit Gateway:
Terminal window aws 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 || 65002 | available | -
Inspection VPC attachment:
Terminal window ATT=$(terraform output -raw inspection_attachment_id)aws ec2 describe-transit-gateway-vpc-attachments \--region ap-southeast-6 \--transit-gateway-attachment-ids "$ATT" \--query 'TransitGatewayVpcAttachments[0].{Id:TransitGatewayAttachmentId,State:State,Vpc:VpcId}' \--output table| tgw-attach-0d4c6c5cb225f6768 | available | vpc-0ad3fed6c0393729a | -
NFW not attached:
Terminal window terraform output -raw enable_network_firewallterraform output -raw firewall_arnfalse -
RAM share:
Terminal window aws ram get-resource-shares \--region ap-southeast-6 \--resource-owner SELF \--query 'resourceShares[?contains(name, `nfw-lab`)].[name,status]' \--output table| nfw-lab-akl-tgw-share | ACTIVE |