Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ resource "aws_elasticache_replication_group" "default" {
apply_immediately = var.apply_immediately
data_tiering_enabled = var.data_tiering_enabled
auto_minor_version_upgrade = var.auto_minor_version_upgrade
auth_token_update_strategy = var.auth_token_update_strategy

dynamic "log_delivery_configuration" {
for_each = var.log_delivery_configuration
Expand Down
11 changes: 11 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,14 @@ variable "insufficient_data_actions" {
type = list(string)
default = []
}

variable "auth_token_update_strategy" {
description = "Strategy to use when updating the auth_token. Valid values: SET, ROTATE, DELETE."
type = string
default = "ROTATE"

validation {
condition = contains(["SET", "ROTATE", "DELETE"], var.auth_token_update_strategy)
error_message = "auth_token_update_strategy must be one of SET, ROTATE, or DELETE if auth_token is set."
}
}