Home > Enterprise >  S3 bucket: Encountered unsupported property NonCurrentVersionTransition
S3 bucket: Encountered unsupported property NonCurrentVersionTransition

Time:04-11

I want to add this S3 lifecycle rule to CloudFormation template:

          - Prefix: "dumps/"
            TagFilters:
              - Key: tag
                Value: value
            ExpirationInDays: 21
            NonCurrentVersionTransitions:
              - TransitionInDays: 3
                StorageClass: "GLACIER"
            Status: Enabled

ERROR :

Encountered unsupported property NonCurrentVersionTransitions

Both properties are unsupported :

NonCurrentVersionTransitions

NonCurrentVersionTransition

I followed this doc :

https://docs.aws.amazon.com/fr_fr/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-rule-tagfilters

Thanks for your help ..

CodePudding user response:

I think it's a typo problem? CloudFormation doc says NoncurrentVersionTransitions, not NonCurrentVersionTransitions

  • Related