Skip to content

Feature Request: Add Option for Lifecycle Policies #4

@flamewalker103-commits

Description

@flamewalker103-commits

Feature Request: Add Option for Lifecycle Policies

Overview

It would be beneficial to enhance the functionality of the CLI-driven Test Workspace by adding support for S3 bucket lifecycle policies. This feature would allow users to manage their S3 objects' lifecycle automatically, such as transitioning objects to different storage classes or even deleting them after a certain period.

Proposed Changes

  • Introduce a new variable lifecycle_rules to define the desired lifecycle policies in a structured format. This could include options like:

    • Transition rules (e.g., move objects to Glacial storage after 30 days)
    • Expiration rules (e.g., delete objects after 1 year)
  • Update the S3 bucket resource in the Terraform configuration to implement these lifecycle policies based on user-defined variables.

Benefits

  • Reduces manual effort in managing the S3 bucket contents.
  • Helps in optimizing storage costs by ensuring that objects are moved to cheaper storage or deleted when no longer needed.

Implementation

Let me know if you would be interested in collaborating on this feature, or if there are existing guidelines for contributing enhancements to this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions