Commands
Quick reference while you follow Deploy and operate. Apply order, flags, probes, and destroy live on those pages — Teardown for destroy.
Lab: jajera/aws-nfw-lab. Paths below are under environment/sandbox/.
Stacks
Section titled “Stacks”| Stack | Path |
|---|---|
| Syd hub | ap-southeast-2/hub |
| Akl hub | ap-southeast-6/hub |
| Syd / Akl workload-dev | ap-southeast-2/workload-dev · ap-southeast-6/workload-dev |
| Syd / Akl workload-prod | ap-southeast-2/workload-prod · ap-southeast-6/workload-prod |
Hub peering (+ lab.demo) |
ap-southeast-2/hub-peering |
Prefer full terraform apply with flags in terraform.tfvars — avoid -target.
Outputs
Section titled “Outputs”# hub (either Region)terraform output -raw enable_network_firewallterraform output -raw firewall_rules_enabledterraform output -raw spoke_association_route_table_idterraform output -raw flow_log_group_nameterraform output -raw alert_log_group_name
# workload-*terraform output -raw test_host_instance_idterraform output -raw test_host_private_ip
# hub-peeringterraform output -raw peering_attachment_idterraform output -raw syd_dev_hostnameSSM probe template
Section titled “SSM probe template”export AWS_PROFILE=YOUR_WORKLOAD_PROFILE # dev or prodREGION=ap-southeast-2 # or ap-southeast-6INSTANCE_ID=… # test_host_instance_id
CMD=$(aws ssm send-command --region "$REGION" --instance-ids "$INSTANCE_ID" \ --document-name AWS-RunShellScript \ --parameters 'commands=["ping -c2 …; curl -sS -m 5 http://…/; dig +short …"]' \ --query 'Command.CommandId' --output text)sleep 15aws ssm get-command-invocation --region "$REGION" \ --command-id "$CMD" --instance-id "$INSTANCE_ID" \ --query 'StandardOutputContent' --output textConcrete command strings are on Prove, Deny, Allow, and Validate.