I am working on receiving user metadata values (which I originally created) for files located on the s3 storage. If I use the aws s3api head-object command, it returns the names of the metadata keys and also it's values. Meanwhile the Get-S3ObjectMetadata command only returns the metadata key names. Is there a ways to get the key names and also the values?
I am trying something like the following:
$metadataObject = Get-S3ObjectMetadata -BucketName someBucket -Key someKey -Select metadata
This returns the metadata key names in the form of "x-amz-meta-somename" format. I guess I need to somehow tell the s3 to return the values for those attributes? I am unsure what can be done at this point. Any help is appreciated.
Thank you!