Skip to content

Troubleshooting

Progress checklist

SymptomDiagnosisFix
Directory create fails on AZ nameUsed ap-southeast-2a instead of AZ IDUse apse2-az1 in the bucket name and Location.Name
Wrong AZ / poor Express latencySubnet/EC2 not in the AZ mapped to apse2-az1describe-availability-zones --zone-ids apse2-az1; recreate there
AccessDenied on Express GET/PUTMissing s3express:CreateSessionGrant CreateSession on the directory bucket ARN; wait for IAM
InvalidAccessPoint / endpoint errorsMissing s3express gateway endpointCreate com.amazonaws.ap-southeast-2.s3express (keep …s3)
aws s3 sync fails on ExpressDirectory buckets reject syncaws s3 cp … --recursive (Standard may still use sync)
MethodNotAllowed on put-bucket-taggingClassic tagging API on a directory bucketaws s3control tag-resource on the s3express bucket ARN
KeyCount is None / odd list outputDirectory list response shapeUse --query 'length(Contents)'
SSM Not connected / port-forward failsRole lacks SSM managed policy, or agent not upAttach AmazonSSMManagedInstanceCore; reboot or wait; install Session Manager plugin locally
Harness / :8080 not up yetUser-data still installing Docker, or container not started./scripts/demo.sh status; wait; see harness for re-pull
Bucket name rejectedSuffix not --apse2-az1--x-s3Follow base--zone-id--x-s3 exactly
Hook / agent blocked mutating AWS CLIGuard env unsetExport S3X_LAB_ALLOW_AWS=1 as the operator (Kiro guard-aws-mutations)
Profile / account surpriseImplicit credentialsAlways AWS_PROFILE=sandbox and AWS_REGION=ap-southeast-2
No ECR image on demo.sh upImage pipeline not built./scripts/image.sh up && ./scripts/image.sh build first
Terminal window
export AWS_PROFILE=sandbox
export AWS_REGION=ap-southeast-2
aws ec2 describe-availability-zones --zone-ids apse2-az1
aws ec2 describe-vpc-endpoints \
--filters Name=service-name,Values=com.amazonaws.ap-southeast-2.s3express
aws ssm get-connection-status \
--target "$(jq -r .instanceId .lab-state.json)"
./scripts/demo.sh status