-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 glacier restore status missing from metadata #361
Comments
Hi @ukdocCT, Thanks for reporting the issue. The S3 glacier restoration process related metadata which is available on Are you looking for any specific metadata in this case? I can see that the I will review this further with the team to investigate it. Regards, |
This issue has not received a response in 5 days. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled. |
This issue has not received a response in 5 days. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled. |
Hi @ukdocCT, To retrieve the custom metadata associated with an S3 object, you can use the following PowerShell command: $metadata = Get-S3ObjectMetadata -BucketName ‘<<bucket_name>>’ -Key ‘<<key_name>>'
$customMetadata = $metadata.Metadata
$customMetadata.Keys | ForEach-Object {
$key = $_
$value = $customMetadata[$key]
Write-Output "Key: $key, Value: $value"
} This command will output the custom metadata key-value pairs associated with the specified S3 object. For example:
As I mentioned earlier, the If you require any specific glacier restoration-related metadata that is not present in the current output, please let us know, and we can look into it further. Regards, |
This issue has not received a response in 5 days. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled. |
Describe the bug
I recently restore a large number of files in one of our S3 buckets.
In the web console i can see that some are restored (the batch job is still running).
However i am unable to find that status using powershell. I can get the header metadata using
aws s3api head-object
which returns a Restore object (eg Restore : ongoing-request="false", expiry-date="Mon, 13 Jan 2025 00:00:00 GMT").However, when using
get-s3objectmetadata
it does not return all the data thataws s3api head-object
returns.Regression Issue
Expected Behavior
Get-S3ObjectMetadata
should return the same metadata thataws s3api head-object
does.Current Behavior
Reproduction Steps
Name Value
PSVersion 7.4.5
PSEdition Core
GitCommitId 7.4.5
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
The text was updated successfully, but these errors were encountered: