terraform-aws-modules / terraform-aws-elasticache

Terraform module to create AWS ElastiCache resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/elasticache/aws
Apache License 2.0
16 stars 28 forks source link

Issue with replication group id variable #6

Closed Alonreznik closed 6 months ago

Alonreznik commented 6 months ago

Description

When running the module without any engine parameter and replication_group_id parameter, i'm getting the next:

│ Error: Invalid combination of arguments
│ 
│   with aws_elasticache_cluster.this[0],
│   on main.tf line 49, in resource "aws_elasticache_cluster" "this":
│   49:   replication_group_id         = var.create && var.create_replication_group ? aws_elasticache_replication_group.this[0].id : var.replication_group_id
│ 
│ "replication_group_id": only one of `engine,replication_group_id` can be
│ specified, but `engine,replication_group_id` were specified.

It seems the engine default to redis somehow breaks the option of replication_group_id inside the module

bryantbiggs commented 6 months ago

closing due to lack of reproduction - please populate the issue template provided

github-actions[bot] commented 5 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

antonbabenko commented 3 months ago

This issue has been resolved in version 1.2.2 :tada: