Skip to content

Commit

Permalink
fix: allow null for transit encryption mode
Browse files Browse the repository at this point in the history
  • Loading branch information
swiknaba committed Aug 31, 2024
1 parent 099a772 commit 0f19dec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws/elasticache/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ variable "transit_encryption_mode" {
description = "when migrating from no encryption to encryption, this must be set to 'preferred', then apply changes, then set to 'required'"

validation {
condition = contains(["required", "preferred"], var.transit_encryption_mode)
condition = contains(["required", "preferred", null], var.transit_encryption_mode)
error_message = "transit_encryption_mode must be either 'required' or 'preferred'"
}
}
Expand Down
2 changes: 1 addition & 1 deletion aws/stack/app/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ variable "elasticache_transit_encryption_mode" {
description = "when migrating from no encryption to encryption, this must be set to 'preferred', then apply changes, then set to 'required'"

validation {
condition = contains(["required", "preferred"], var.elasticache_transit_encryption_mode)
condition = contains(["required", "preferred", null], var.elasticache_transit_encryption_mode)
error_message = "elasticache_transit_encryption_mode must be either 'required' or 'preferred'"
}
}
Expand Down

0 comments on commit 0f19dec

Please sign in to comment.