I have an object stored in S3 which has multiple versions, I want to download a specific version of the object using Go, I’m using AWS SDK: https://github.com/aws/aws-sdk-go
I’m able to download an object from S3 without providing the versionId, i.e. the latest version of the object. But when I provide the versionId, I’m getting access denied error response from the GET object API.
URL formed is GET https://{host}/{object_path}?versionId=<version_id>
Tushar Das is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.