Skip to content

Troubleshooting

SymptomLikely causeResolution
invalid AWS Region: ap-southeast-6Old AWS provider (v5.x lock file)terraform -chdir=terraform/accounts/<stack> init -upgrade; requires provider 6.53.0
AccessDenied on AssociateVPCWithHostedZoneStale VPC ID in network/terraform.tfvarsCompare workload output vpc_id vs network/terraform.tfvars; update and re-apply Phase 2a
AccessDenied cross-regionWrong vpc_region on authorizationConfirm Phase 2a authorizes apse6 VPCs with ap-southeast-6
dig returns no answerPhase 3 incomplete or propagation delayConfirm enable_zone_association=true; wait 1–2 minutes; check Step A
Wrong or missing zone_idMismatch between stacksMatch zone_id to terraform -chdir=terraform/accounts/network output zone_id
Empty VPC consoleWrong region in console pickerSwitch to ap-southeast-2 or ap-southeast-6
Plan wants to replace associationRe-apply without zone_idUse -var-file=terraform.tfvars with zone_id and phase flags
Plan shows destroy on live stackMissing terraform.tfvars or wrong flagsPlan must show 0 to destroy before apply
Plan wants to create VPC but VPC existsLost or empty stateDo not apply. Import resources or restore terraform.tfstate.backup
InvalidServiceName for ec2messages in apse6Endpoint not launched in region yetOmit from ssm_vpc_endpoint_services (default on *-apse6)
SSM TargetNotConnected on *-apse6Missing ec2messages or agent offlineTry send-command; enable NAT; or use Step A only — see Verification
Step A missing zone on network-apse6Association drift (state vs AWS)Re-apply owning stack with full -var-file
dig not foundbind-utils not installedsudo dnf install -y bind-utils on AL2023
  • Confirm all four workload vpc_id values in network/terraform.tfvars match Phase 1 outputs
  • Read Security Boundaries for authorization prerequisites
  • Run Phase 3 pre-flight before retrying
  • Confirm authorizations exist: aws route53 list-vpc-association-authorizations --id <zone_id>
  • Step A proves association even when SSM is unavailable
  • Allow propagation time after new associations
  • For apse6 without NAT, demonstrate cross-account resolution from apse2 tests (4, 6)

Teardown when finished with the demo.