Skip to content

S3 Lifecycle Transition minimums for Glacier Instant Retrieval

0

I have the following Terraform configuration for my S3 bucket's lifecycle configuration, which moves items into Glacier Instant Retreival after 30 days, and then into Glacier Deep Archive after 90 days (i.e. 60 days after they move into IR).

resource "aws_s3_bucket_lifecycle_configuration" "bucket" {
  bucket = aws_s3_bucket.bucket.id

  rule {
    id     = "archive-old-objects"
    status = "Enabled"

    transition {
      days          = 30
      storage_class = "GLACIER_IR"
    }

    transition {
      days          = 90
      storage_class = "DEEP_ARCHIVE"
    }
  }
}

However, I get the following error back from the AWS API:

operation error S3: PutBucketLifecycleConfiguration, https response error StatusCode: 400, RequestID: K7Q7W26QT0Z18FVP, HostID: OpbWywDUruff069J5lV+5rCAShnuy9VX2iNlbbWcHimVGoGaOanavwkGofDdb1X5c6eL7bghbd4=, api error InvalidArgument: 'Days' in the 'Transition' action for StorageClass 'DEEP_ARCHIVE' for filter '(prefix=)' must be 90 days more than 'filter '(prefix=)'' in the 'Transition' action for StorageClass 'GLACIER_IR'

However, there is no documented 90 day storage minimum for Glacier Instant Retrieval that I can see - e.g. https://docs.aws.amazon.com/AmazonS3/latest/userguide//lifecycle-transition-general-considerations.html. Is there something I'm missing?

asked 3 years ago1.9K views

2 Answers
2
Accepted Answer

Hi,

have a detailed look at https://aws.amazon.com/s3/pricing/

It says:

Objects that are archived to S3 Glacier Instant Retrieval and S3 Glacier Flexible Retrieval are 
charged for a minimum storage duration of 90 days

So, yes, the minimal stay of 90 days is documented

Best,

Didier

EXPERT

answered 3 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 3 years ago

  • Aha thanks! Seems a bit annoying that it's not on the lifecycle transitions documentation but oh well.

  • You're right: it should be on the doc page that you point to as it is for other tiers. The best is that you open a ticket on your AWS consolle to request this doc update. Thanks for accepting my answer!

0

Also a little bit more about number of days in each storage class here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html?icmpid=docs_amazons3_console#glacier-pricing-considerations

But we all agree the pricing doc should have this information as well.

AWS

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.