Skip to content

Commit

Permalink
fix: auth_token output when transit_encryption_enabled set to false
Browse files Browse the repository at this point in the history
  • Loading branch information
h1manshu98 committed Dec 7, 2023
1 parent e22fb36 commit 0f5d2f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ output "Memcached_ssm_name" {
}

output "auth_token" {
value = random_password.auth_token[0].result
value = var.auth_token_enable ? random_password.auth_token[0].result : ""
sensitive = true
description = "Auth token generated value"
}
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ variable "auth_token_enable" {
variable "auth_token" {
type = string
default = null
description = "The password used to access a password protected server. Can be specified only if transit_encryption_enabled = true."
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."
}

variable "cluster_replication_enabled" {
Expand Down

0 comments on commit 0f5d2f7

Please sign in to comment.