Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possiblity do disable transition to Standard IA #36

Open
daniel-andresen-jimdo opened this issue Jan 28, 2021 · 1 comment
Open

Possiblity do disable transition to Standard IA #36

daniel-andresen-jimdo opened this issue Jan 28, 2021 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@daniel-andresen-jimdo
Copy link

There is an option to disable the transition to Glacier but there is no option to disable the transition to Standard IA.

Expected Behavior

Possibility to disable transition to Standard IA.
For example add this new parameter: enable_standard_ia_transition

Use Case

My company want to store the data only for 5 days in s3. Till now this is not possible as the Standard IA has a minimum storage duration of 30 days. So I want to disable the transition to Standard IA.

Change this in the main.tf:
transition {
days = var.standard_transition_days
storage_class = "STANDARD_IA"
}
to something dynamic.
dynamic "transition" {
for_each = var.enable_standard_ia_transition ? [1] : []

  content {
    days          = var.standard_ia_transition_days
    storage_class = "STANDARD_IA"
  }
}

Thanks a lot.

@Gowiem
Copy link
Member

Gowiem commented Jun 24, 2021

@daniel-andresen-jimdo seems like a simple, feel free to put it up on PR since you already figured out the code and we'll check it out 👍

@Gowiem Gowiem added good first issue Good for newcomers help wanted Extra attention is needed labels Jun 24, 2021
@settings settings bot removed the feature request label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants