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?
1 réponse
0
Réponse acceptée

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
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions