- 最新
- 最多得票
- 最多評論
After talking with AWS Support, here is what I found:
Because the object is encrypted with a customer provided key, I can't see the status of the restore from Deep Glacier to S3 in the AWS Management Webpage. So I was told to use the following powershell command:
Get-S3ObjectMetadata -BucketName <bucket> -key '<S3 folder/S3 filename>' -ServerSideEncryptionCustomerMethod AES256 -ServerSideEncryptionCustomerProvidedKey "123456"
Or, I could have used the AWS command (adding the argument for providing the encryption key):
aws s3api head-object --bucket awsexamplebucket --key dir1/example.obj
With either command, you can see that RestoreInProgress is set to true while the object is being restored to S3, and then it changes to false and the RestoreExpiration is set to a date when the object is ready to be downloaded out of S3:
Get-S3ObjectMetadata -BucketName <bucket> -key '<S3 folder/S3 filename>' -ServerSideEncryptionCustomerMethod AES256 -ServerSideEncryptionCustomerProvidedKey "123456"
-or-
aws s3 cp s3://awsexamplebucket/dir1/ s3://awsexamplebucket/dir1/ --storage-class STANDARD --recursive --force-glacier-transfer [with encryption key specified]
After talking with AWS Support, here is what I found:
Because the object is encrypted with a customer provided key, I can't see the status of the restore from Deep Glacier to S3 in the AWS Management Webpage. So I was told to use the following powershell command:
Get-S3ObjectMetadata -BucketName <bucket> -key '<S3 folder/S3 filename>' -ServerSideEncryptionCustomerMethod AES256 -ServerSideEncryptionCustomerProvidedKey "123456"
Or, I could have used the AWS command (adding the argument for providing the encryption key):
aws s3api head-object --bucket awsexamplebucket --key dir1/example.obj
With either command, you can see that RestoreInProgress is set to true while the object is being restored to S3, and then it changes to false and the RestoreExpiration is set to a date when the object is ready to be downloaded out of S3:
Get-S3ObjectMetadata -BucketName <bucket> -key '<S3 folder/S3 filename>' -ServerSideEncryptionCustomerMethod AES256 -ServerSideEncryptionCustomerProvidedKey "123456"
-or-
aws s3 cp s3://awsexamplebucket/dir1/ s3://awsexamplebucket/dir1/ --storage-class STANDARD --recursive --force-glacier-transfer [with encryption key specified]
相關內容
- AWS 官方已更新 2 年前