Skip to content

Commit

Permalink
lint file
Browse files Browse the repository at this point in the history
  • Loading branch information
brunodasilvalenga committed Feb 6, 2024
1 parent db3dc23 commit 0aceb01
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions redis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@ resource "aws_elasticache_replication_group" "redis" {
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.transit_encryption_enabled ? var.auth_token != null ? var.auth_token : random_string.redis_password[0].result : null
auth_token = var.transit_encryption_enabled ? random_string.redis_password[0].result : null
engine = var.engine
engine_version = var.engine_version
kms_key_id = var.kms_key_id
maintenance_window = var.maintenance_window
node_type = var.node_type
notification_topic_arn = var.notification_topic_arn
number_cache_clusters = var.number_cache_clusters
port = var.port
security_group_ids = [aws_security_group.redis.id]
snapshot_retention_limit = var.snapshot_retention_limit
snapshot_window = var.snapshot_window
subnet_group_name = try(aws_elasticache_subnet_group.redis[0].name, var.subnet_group_name)
parameter_group_name = var.parameter_group_name
user_group_ids = var.user_group_ids
auth_token = var.transit_encryption_enabled ? random_string.redis_password[0].result : null
engine = var.engine
engine_version = var.engine_version
kms_key_id = var.kms_key_id
maintenance_window = var.maintenance_window
node_type = var.node_type
notification_topic_arn = var.notification_topic_arn
number_cache_clusters = var.number_cache_clusters
port = var.port
security_group_ids = [aws_security_group.redis.id]
snapshot_retention_limit = var.snapshot_retention_limit
snapshot_window = var.snapshot_window
subnet_group_name = try(aws_elasticache_subnet_group.redis[0].name, var.subnet_group_name)
parameter_group_name = var.parameter_group_name
user_group_ids = var.user_group_ids

tags = {
"Name" = var.name
Expand Down

0 comments on commit 0aceb01

Please sign in to comment.