how to identify the bucket region for an external bucket with just the bucket name?

0

Is there a way to identify the bucket region for a bucket I don't own with just the bucket name?

AWS
preguntada hace 4 meses273 visualizaciones
2 Respuestas
0
profile picture
EXPERTO
respondido hace 4 meses
  • Doesn't this require owning the bucket, or at least knowing which account does?

0

Hi,

For buckets with public access that you don't own, curl -sI https://<bucket-dns> | grep bucket-region should work. It returns x-amz-bucket-region: <region-name>.

AFAIK, for private buckets that you don't know: no way to know the region. And obviously, it is by design.

Best,

Didier

profile pictureAWS
EXPERTO
respondido hace 4 meses
profile picture
EXPERTO
Steve_M
revisado hace 4 meses
  • This is a really neat way of getting the required info. It may be better to use http:// rather than https:// though, as in cases where the bucket is being used for static website hosting the https:// address will return an SSL error.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas