Skip to content

Commit ae4e47a

Browse files
h1manshu98pendharevaibhav-cdanmolnagpaltheprashantyadav
authored
fix: auth_token output when transit_encryption_enabled set to false (#61)
* fix: auth_token output when transit_encryption_enabled set to false * Feature/automerge wfl (#63) * Feat: Add automerge github shared workflow * Feat: Add automerge github shared workflow --------- Co-authored-by: Anmol Nagpal <anmol@clouddrove.com> * feat: update tf.checks step name and tf and aws version (#64) Co-authored-by: anmolnagpal <anmol@clouddrove.com> * fix: auth_token output when transit_encryption_enabled set to false --------- Co-authored-by: Vaibhav Bhagwat Pendhare <vaibhav.pendhare@clouddrove.com> Co-authored-by: Anmol Nagpal <anmol@clouddrove.com> Co-authored-by: theprashantyadav <79893616+theprashantyadav@users.noreply.github.com> Co-authored-by: Anmol Nagpal <ianmolnagpal@gmail.com>
1 parent dcbef42 commit ae4e47a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ output "Memcached_ssm_name" {
6161
}
6262

6363
output "auth_token" {
64-
value = random_password.auth_token[0].result
64+
value = var.auth_token_enable ? random_password.auth_token[0].result : ""
6565
sensitive = true
6666
description = "Auth token generated value"
6767
}

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ variable "auth_token_enable" {
184184
variable "auth_token" {
185185
type = string
186186
default = null
187-
description = "The password used to access a password protected server. Can be specified only if transit_encryption_enabled = true."
187+
description = "The password used to access a password protected server. Can be specified only if transit_encryption_enabled = true. Find auto generated auth_token in terraform.tfstate or in AWS SSM Parameter Store."
188188
}
189189

190190
variable "cluster_replication_enabled" {

0 commit comments

Comments
 (0)