Skip to content

(synthetics): expose lifecycle rules for generated artifacts bucket #22634

@mackensen

Description

@mackensen

Describe the feature

Allow passing Lifecycle Rules to the generated ArtifactsBucketLocation S3 bucket.

Use Case

If you do not specify an ArtifactsBucketLocation for a Canary an S3 bucket is created for you and cannot be changed afterward. This bucket sets props for encryption and forcing SSL but does not expose lifecycle rules, nor are lifecycle rules set in relation to the failureRetentionPeriod and successRetentionPeriod props on the Canary. The S3 bucket will grow indefinitely unless you manually specify lifecycle rules from the interface or CLI.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.43.1

Environment details (OS name and version, etc.)

macOS Monterey 12.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-syntheticsRelated to Amazon CloudWatch Syntheticseffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions