如何使用 S3 uri?

use*_*069 5 amazon-s3 amazon-web-services

当出现这样的 uri 时,如何访问 S3 存储桶?

s3://example-bucket/path/to/object

将此粘贴到浏览器中不起作用。使用 AWS cli 是唯一的方法吗?

ran*_*a47 12

引用此论坛上的答案,您可以使用存储桶名称和对象名称来创建浏览器链接。

http(s)://<bucket>.s3.amazonaws.com/<object>
http(s)://s3.amazonaws.com/<bucket>/<object>
Run Code Online (Sandbox Code Playgroud)

对于你提到的例子,

# s3://example-bucket/path/to/object
http(s)://example-bucket.s3.amazonaws.com/path/to/object
http(s)://s3.amazonaws.com/example-bucket/path/to/object
Run Code Online (Sandbox Code Playgroud)

但是,应向用户提供所需的权限。