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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠