What will happen when API call to get a object from S3 which is in S3 infrequent storage or in Glacier ?

0

We have setup the data life cycle configurations to archive the objects from s3 to Glacier. We have service which will fetch the data from S3 and return the object in the response. After a year some objects would be archived to infrequent storage and then to Glacier. What will happen when API get a request for the object which is present in the Glacier ?

Will it throw error ? or will S3 API try to fetch the data but it will take longer to return ?

已提問 2 年前檢視次數 1086 次
1 個回答
0

Hi there,

The behavior will depend on the storage class that you are using. S3 Standard-Infrequent Access and S3 One Zone-Infrequent Access are both storage classes that are intended for data that does not need to be accessed frequently, but must be retrieved quickly when requested. With these storage classes, a GetObject request will succeed without any issues.

S3 Glacier Instant Retrieval is a new storage class that is designed for long-lived data that's rarely acessed, but requires quick retrieval when needed. A GetObject request to an object using this storage class will also succeed without any issues.

If you are using Glacier Flexible Retrieval or Glacier Deep Archive, you will first need to initiate a restore request before you can download data from this storage class. If you attempt a GetObject request without restoring the object, S3 will return an InvalidObjectState error. For more information on S3's storage classes, please see https://aws.amazon.com/s3/storage-classes/

支援工程師
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南