Skip to content

Commit

Permalink
fix: improvements (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
leojaardim authored Apr 26, 2023
1 parent 15ea832 commit 2c9cecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "aws_elasticache_replication_group" "this" {
num_cache_clusters = var.num_cache_clusters
engine = var.engine
engine_version = var.engine_version
parameter_group_name = var.parameter_group_name
parameter_group_name = coalesce(var.parameter_group_name, var.replication_group_id)
port = var.port
preferred_cache_cluster_azs = var.preferred_cache_cluster_azs
apply_immediately = var.apply_immediately
Expand Down Expand Up @@ -75,7 +75,7 @@ module "elasticache_parameter_group" {

create = var.create_elasticache_parameter_group

name = var.parameter_group_name
name = coalesce(var.parameter_group_name, var.replication_group_id)
family = var.family
description = var.description_parameter
parameters = var.parameters
Expand Down

0 comments on commit 2c9cecf

Please sign in to comment.