Skip to content

Enable noncurrent version deletion in lifecycle rule #1371

@jonmcewen

Description

@jonmcewen

Describe the solution you'd like

The cache bucket lifecycle rules don't allow for deletion of noncurrent cache objects. The terraform resource does not allow for extension (multiple lifecycle attachments) and attempts to override result in flip-flop persistent diffs.

One or both of the following is suggested:

  1. allow disabling creation of the lifecycle policy, so a custom lifecycle can be attached
  2. add a variable noncurrent_retention_days and a noncurrent deletion action rule

Describe alternatives you've considered

I have tried overriding with custom policy, but end up with two competing resources.

I have considered creating my own bucket resource and not using the cache module, which I might do now - I should be able to just use moved blocks to handle the state migration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions