Skip to content

Commit

Permalink
Optional transition to IA
Browse files Browse the repository at this point in the history
  • Loading branch information
lemaitre-aneo committed Feb 12, 2024
1 parent 6b65fa8 commit 116940c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storage/aws/efs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ variable "provisioned_throughput_in_mibps" {
variable "transition_to_ia" {
description = "Describes the period of time that a file is not accessed, after which it transitions to IA storage"
type = string
default = "AFTER_7_DAYS"
default = null
validation {
condition = contains([
condition = var.transition_to_ia != null ? contains([
"AFTER_7_DAYS",
"AFTER_14_DAYS",
"AFTER_30_DAYS",
"AFTER_60_DAYS",
"AFTER_90_DAYS"
], var.transition_to_ia)
], var.transition_to_ia) : true
error_message = "Possible values for the parameter transition_to_ia are \"AFTER_7_DAYS\" | \"AFTER_14_DAYS\" | \"AFTER_30_DAYS\", \"AFTER_60_DAYS\" | \"AFTER_90_DAYS\"."
}
}
Expand Down

0 comments on commit 116940c

Please sign in to comment.