Skip to content

Commit

Permalink
Fix: fix the tf code format by running terraform fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhav7797 committed Sep 6, 2023
1 parent 3d26d69 commit ca0d035
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _example/redis-cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ output "redis_ssm_arn" {
}

output "auth_token" {
value = module.redis-cluster.auth_token
value = module.redis-cluster.auth_token
sensitive = true
}
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ resource "aws_elasticache_subnet_group" "default" {
##----------------------------------------------------------------------------------

resource "random_password" "auth_token" {
count = var.auth_token_enable && var.auth_token == null ? 1 : 0
length = 25
special = false
count = var.auth_token_enable && var.auth_token == null ? 1 : 0
length = 25
special = false
}

##----------------------------------------------------------------------------------
Expand Down Expand Up @@ -175,7 +175,7 @@ resource "aws_elasticache_replication_group" "cluster" {
at_rest_encryption_enabled = var.at_rest_encryption_enabled
transit_encryption_enabled = var.transit_encryption_enabled
multi_az_enabled = var.multi_az_enabled
auth_token = var.auth_token_enable ? ( var.auth_token == null ? random_password.auth_token[0].result : var.auth_token ) : null
auth_token = var.auth_token_enable ? (var.auth_token == null ? random_password.auth_token[0].result : var.auth_token) : null
kms_key_id = var.kms_key_id == "" ? join("", aws_kms_key.default[*].arn) : var.kms_key_id
tags = module.labels.tags
num_cache_clusters = var.num_cache_clusters
Expand Down
4 changes: 2 additions & 2 deletions 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
sensitive = true
value = random_password.auth_token[0].result
sensitive = true
description = "Auth token generated value"
}

0 comments on commit ca0d035

Please sign in to comment.