InvalidObjectState: An error occurred (InvalidObjectState) when calling the GetObject operation: The operation is not valid for the object's access tier
$ aws s3api restore-object --bucket YOUR-BUCKET --key OBJECT-PATH --restore-request "$( jq -cn '{GlacierJobParameters:{Tier:"Standard"}}')"
$ aws s3api list-objects-v2 --optional-object-attributes RestoreStatus --bucket YOUR-BUCKET --prefix OBJECT-PATH
{
"Contents" : [
{
"Key" : "OBJECT-PATH",
"LastModified" : "2022-11-18T23:29:00+00:00",
"ETag" : " \" ff0baa54aa4124a40f15298638a27679-8 \" ",
"Size" : 121008926,
"StorageClass" : "INTELLIGENT_TIERING",
"RestoreStatus" : {
"IsRestoreInProgress" : true
}
}
],
"RequestCharged" : null
}