amazon-web-services - 如何确定公共 AWS S3 存储桶的区域?
问题描述
我知道我可以通过以下方式确定我拥有的 AWS S3 存储桶的区域:
aws s3api get-bucket-location --bucket <my-bucket>
但是如何确定公共访问存储桶的区域(显然我不拥有)?
如果我尝试访问诸如 noaa-goes16 之类的 AWS 开放数据存储桶之一:
$ aws s3api get-bucket-location --bucket noaa-goes16
我得到:
An error occurred (AccessDenied) when calling the GetBucketLocation operation: Access Denied
解决方案
是的,你会认为这会更容易弄清楚,但这是我使用的方法:
$ curl -sI https://noaa-goes16.s3.amazonaws.com | grep bucket-region
返回:
x-amz-bucket-region: us-east-1
推荐阅读
- java - 从单独的线程更新领域时,如何避免“检测到不一致。无效的项目位置”?
- mysql - 使用 SQL 查询中的多个别名作为 Excel 中的列标题
- python - DEAP 锦标赛选择,避免重复个人的交叉
- java - 如何编写java方法(如果String x = to String y return String z)
- python - 创建一个独特的“全局”颜色图以跨多个堆叠条形图使用
- python - 无法使用 cmd 提示符打开 Tabpy(或其他任何东西)
- sql - 动态替代变量
- windows - WMI 已弃用:现在如何从 .Net Core 查询?
- mysql - 使用生成的列创建的表会引发错误
- scala - 有没有办法在不使用 for 循环的情况下获取列表的每个项目?