Skip to content

Commit

Permalink
add support for auth_token_update_strategy (#1)
Browse files Browse the repository at this point in the history
* add support for auth_token_update_strategy

* set default value
  • Loading branch information
m477r1x authored Dec 4, 2023
1 parent 1a0dd70 commit ba2522c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ resource "aws_elasticache_replication_group" "redis" {
at_rest_encryption_enabled = var.global_replication_group_id == null ? var.at_rest_encryption_enabled : null
transit_encryption_enabled = var.global_replication_group_id == null ? var.transit_encryption_enabled : null

auth_token = var.auth_token
kms_key_id = var.at_rest_encryption_enabled ? var.kms_key_id : null
auth_token = var.auth_token
auth_token_update_strategy = var.auth_token_update_strategy
kms_key_id = var.at_rest_encryption_enabled ? var.kms_key_id : null

global_replication_group_id = var.global_replication_group_id

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ variable "auth_token" {
default = null
}

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

variable "kms_key_id" {
type = string
description = "The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if `at_rest_encryption_enabled = true`"
Expand Down
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
terraform {
required_version = ">= 1.3.0"
required_version = ">= 1.6.0"

required_providers {
aws = ">= 4.15.0"
aws = ">= 5.0.0"
random = ">= 3.4.3"
}
}

0 comments on commit ba2522c

Please sign in to comment.