`PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint.`
BeginnerTroubleshootingS3, EBS and EFS
Answer
Likely causes → The client is calling the wrong Regional endpoint for this bucket, usually because the profile Region is different from the bucket's Region, or an old SDK hard-codes s3.amazonaws.com.
Diagnose →
aws s3api get-bucket-location --bucket my-bucket # null LocationConstraint = us-east-1
aws configure get region
aws s3 ls s3://my-bucket --debug 2>&1 | grep -i 'x-amz-bucket-region'
Fix →
- Pass the right Region:
aws s3 ls s3://my-bucket --region eu-central-1 - Configure the SDK client with the bucket's Region
Prevent → Keep Region per environment in config, and include the Region in bucket names to make mismatches obvious.
More on S3, EBS and EFS
`BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system.`BeginnerA partner account uploads objects into your bucket, but your own admins get `403 Forbidden` reading them.Intermediate`aws s3 cp` gets `An error occurred (AccessDenied) when calling the GetObject operation` but the IAM policy allows `s3:GetObject` and the bucket policy is fine.IntermediateAn S3 static website endpoint returns `403 Forbidden` with `Code: AccessDenied`.IntermediateHigh-throughput writes get `503 SlowDown: Please reduce your request rate.`Intermediate`BucketNotEmpty: The bucket you tried to delete is not empty. You must delete all versions in the bucket.` even after `aws s3 rm --recursive`.Beginner