amazon-web-servicesamazon-s3boto3amazon-glacier

How to use S3 Glacier Instant Retrieval with boto3?


As described in the boto3 documentation, S3 Glacier storage class can be accessed by using the following command:

import boto3

client = boto3.client('glacier')

But actually I can't find any parameters or clients to activate instant retrieval storage class, that is new since november 2021.

Is it possible to create Glacier Instant Retrieval buckets with boto3?


Solution

  • You just use regular get_object S3 (not glacier) call to get files from S3 Glacier Instant Retrieval class.