Get URL(link) of a public S3 object programmatically

后端 未结 7 724
心在旅途
心在旅途 2021-01-01 14:06

I am storing one public object in AWS S3 bucket using given java API in my server Now i need to return back the public URL of the S3 object to my client

Till now i h

7条回答
  •  感动是毒
    2021-01-01 14:40

    "https://"+{bucket}.s3.amazonaws.com+"/"+key
    

    This URL may look different from the link in object overview in S3. But it works just as the same. Note: The link in object overview usually looks like

      https://s3-ap-southeast-2.amazonaws.com/{bucket}/{key}
    

提交回复
热议问题