s3api head-object #8318
-
When using aws s3api head-object --bucket bucket_name --key key --region ca-central-1, returns a 200 response even though when the bucket/object is not existing in that region. Is this expected? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @Kammula280, thanks for reaching out. While buckets do have specific regions, S3 uses the global region, meaning objects and buckets are accessible from regions other than the region to which the bucket belongs. So to answer your question, yes, this behavior is intentional. I will mention that there still are advantages to specifying regions close to you. From the S3 User Guide :
Hope that helps! @github-actions proposed-answer |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @Kammula280, thanks for reaching out. While buckets do have specific regions, S3 uses the global region, meaning objects and buckets are accessible from regions other than the region to which the bucket belongs. So to answer your question, yes, this behavior is intentional. I will mention that there still are advantages to specifying regions close to you. From the S3 User Guide :