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

Cannot update replication group when it is part of a global data store. #19929

Closed
marinsalinas opened this issue Jun 22, 2021 · 2 comments · Fixed by #20111
Closed

Cannot update replication group when it is part of a global data store. #19929

marinsalinas opened this issue Jun 22, 2021 · 2 comments · Fixed by #20111
Assignees
Labels
bug Addresses a defect in current functionality. service/elasticache Issues and PRs that pertain to the elasticache service.
Milestone

Comments

@marinsalinas
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Affected Resource(s)

  • aws_elasticache_replication_group
  • aws_elasticache_global_replication_group

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "aws_elasticache_global_replication_group" "example" {
  global_replication_group_id_suffix = "example"
  primary_replication_group_id       = aws_elasticache_replication_group.primary.id
}

resource "aws_elasticache_replication_group" "primary" {
  replication_group_id          = "example-primary"
  replication_group_description = "primary replication group"

  cluster_mode {
    replicas_per_node_group = 2
    num_node_groups         = 2
  }

  engine         = "redis"
  engine_version = "5.0.6"
  node_type      = "cache.m5.large"
}

Debug Output

Panic Output

Expected Behavior

Some replication group argument should be able to update.

Actual Behavior

Apply error when trying to update replicas_per_node_group attribute.

Error: error updating ElastiCache Replication Group (dbtfmodules-test-redis): error requesting modification: InvalidParameterValue: Cluster [dbtfmodules-test-redis] is part of a global cluster [ldgnf-dbtfmodules-test-redis]. Request rejected.
	status code: 400, request id: 9e9912af-dab2-409d-96c9-7494bc55f074

Steps to Reproduce

  1. terraform apply
  2. change the replicas_per_node_group value
  3. terraform apply

Important Factoids

References

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/elasticache Issues and PRs that pertain to the elasticache service. labels Jun 22, 2021
@gdavison gdavison self-assigned this Jun 23, 2021
@ewbankkit ewbankkit added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Jun 28, 2021
@github-actions github-actions bot added this to the v3.50.0 milestone Jul 14, 2021
@github-actions
Copy link

This functionality has been released in v3.50.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/elasticache Issues and PRs that pertain to the elasticache service.
Projects
None yet
3 participants