'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 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Marcin