Skip to content

Possiblity do disable transition to Standard IA #36

Open
@daniel-andresen-jimdo

Description

@daniel-andresen-jimdo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions