Skip to content

Commit

Permalink
fix: auth_token output when transit_encryption_enabled set to false (#61
Browse files Browse the repository at this point in the history
)

* 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 <[email protected]>

* feat: update tf.checks step name and tf and aws version (#64)

Co-authored-by: anmolnagpal <[email protected]>

* fix: auth_token output when transit_encryption_enabled set to false

---------

Co-authored-by: Vaibhav Bhagwat Pendhare <[email protected]>
Co-authored-by: Anmol Nagpal <[email protected]>
Co-authored-by: theprashantyadav <[email protected]>
Co-authored-by: Anmol Nagpal <[email protected]>
  • Loading branch information
5 people authored Jan 9, 2024
1 parent dcbef42 commit ae4e47a
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 ae4e47a

Please sign in to comment.