A Config rule that checks if a lifecycle rule is configured for an Amazon Simple Storage Service (Amazon S3) bucket. The rule is NON_COMPLIANT if there is no active lifecycle configuration rules or the configuration does not match with the parameter values.

This config rule supports the following parameters:

  • targetTransitionDays
    • Required: No
    • Type: int
    • Description:Number of days after object creation when objects are transitioned to a specified storage class (for example, 30 days).
  • targetExpirationDays
    • Required: No
    • Type: int
    • Description:Number of days after object creation when objects are deleted (for example, 395 days).
  • targetTransitionStorageClass
    • Required: No
    • Type: String
    • Description:Destination storage class type (for example, Amazon S3 Standard-Infrequent Access (S3 Standard-IA). For more information, see https: //docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html.
  • targetPrefix
    • Required: No
    • Type: String
    • Description:Amazon S3 Object prefix to identify one or more objects.
  • bucketNames
    • Required: No
    • Type: CSV
    • Description:Comma-separated list of Amazon S3 bucket names that have lifecycle policy enabled.

ConfigRule
AWS::Config::ConfigRule


Scope

ComplianceResourceTypes

Source *
CustomPolicyDetails
SourceDetails

CloudFormation Template

Share Template