Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidReplicationGroupState: Replication group must be in available state to modify #54

Open
dmzeus opened this issue Sep 23, 2024 · 2 comments

Comments

@dmzeus
Copy link

dmzeus commented Sep 23, 2024

What is the current behavior?
Got an error Error: modifying ElastiCache Replication Group (*****) shard configuration: error modifying ElastiCache Replication Group shard configuration: InvalidReplicationGroupState: Replication group must be in available state to modify.
when we change node_type and if it's in the tags:

locals {
  node_type = "cache.t4g.small"
}

inputs = {
  node_type = local.node_type
...

tags = { node-type = "${local.node_type}" }
}

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Add variable for node_type to locals
  2. Add this variable to tags and inputs
  3. Change node_type and apply it
  4. Profit.. )

What is the expected behavior?
Running a node type update before or after a tag change

Software versions?
source = "git::[email protected]:umotif-public/terraform-aws-elasticache-redis.git//.?ref=3.5.0"

@dmzeus
Copy link
Author

dmzeus commented Sep 23, 2024

There is a plan example:

# aws_elasticache_replication_group.redis will be updated in-place
  ~ resource "aws_elasticache_replication_group" "redis" {
      ~ node_type                      = "cache.t4g.small" -> "cache.t4g.micro"
      ~ tags                           = {
          ~ "node_type"        = "cache.t4g.small" -> "cache.t4g.micro"
      ~ tags_all                       = {
          ~ "node_type"        = "cache.t4g.small" -> "cache.t4g.micro"
            # (6 unchanged elements hidden)
        # (36 unchanged attributes hidden)

@dmzeus
Copy link
Author

dmzeus commented Sep 23, 2024

Found this issue: hashicorp/terraform-provider-aws#33859 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant