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?

or-wwn
質問済み 4ヶ月前525ビュー
2回答
2
承認された回答

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

profile pictureAWS
エキスパート
回答済み 4ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
profile picture
エキスパート
レビュー済み 4ヶ月前
  • 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
回答済み 4ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ