Getting Amazon S3 object tags through CloudFront distribution URL

0
  • We have a private S3 bucket to store images
  • We have created a CloudFront distribution to expose images in this private S3 bucket.
  • S3 bucket policy allows 'Read' access only for the CloudFront Identity.
  • Through the CloudFront URL, we are able to get list of objects/images in the bucket but this list does not have the S3 object tags in the response.
  • There is a different API to get tags for individual S3 objects: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html
  • We are unable to get this working through the CloudFront URL
  • How can we get access to S3 object tags through CloudFront distribution URL?
AWS
已提問 4 年前檢視次數 990 次
1 個回答
0
已接受的答案

S3 object tags are not exposed through HTTP access. If you need to get object metadata the right way to do that is through the usage of "x-amz-meta-" metadata settings. You will be then able to see it in the response headers when you GET the object.

x-amz-meta-test: MyCustomTag
AWS
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南