From 6a49fa87177f904bf954557bb6e8af20a1caaaf4 Mon Sep 17 00:00:00 2001 From: Jean Guandalini Date: Wed, 1 Dec 2021 17:48:08 -0300 Subject: [PATCH 1/3] add auth_token variable --- main.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.tf b/main.tf index 4605da9..a2f056e 100644 --- a/main.tf +++ b/main.tf @@ -78,6 +78,9 @@ resource "aws_elasticache_replication_group" "default" { # https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/in-transit-encryption.html transit_encryption_enabled = var.transit_encryption_enabled + # The password used to access a password protected server. Can be specified only if transit_encryption_enabled = true + auth_token = var.auth_token == null ? null : var.auth_token + # If true, this parameter causes the modifications in this request and any pending modifications to be applied, # asynchronously and as soon as possible, regardless of the maintenance_window setting for the replication group. # apply_immediately applies only to modifications in node type, engine version, and changing the number of nodes in a cluster. From 5ce81d7270467b2da35f838b7f686615d168947c Mon Sep 17 00:00:00 2001 From: Jean Guandalini Date: Wed, 1 Dec 2021 18:00:49 -0300 Subject: [PATCH 2/3] create variable auth_token --- variables.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/variables.tf b/variables.tf index 9be4257..ac27fe9 100644 --- a/variables.tf +++ b/variables.tf @@ -99,3 +99,9 @@ variable "tags" { type = map(string) description = "A mapping of tags to assign to all resources." } + +variable "auth_token" { + default = null + type = number + description = "Access token for CLI." +} From a50533a5697c568f899e11da014b72c330655aba Mon Sep 17 00:00:00 2001 From: Jean Guandalini Date: Wed, 1 Dec 2021 18:05:24 -0300 Subject: [PATCH 3/3] change variable auth_token --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index ac27fe9..5e5883b 100644 --- a/variables.tf +++ b/variables.tf @@ -102,6 +102,6 @@ variable "tags" { variable "auth_token" { default = null - type = number + type = string description = "Access token for CLI." }