hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.81k stars 9.16k forks source link

Extend Update support for ElastiCache Global Replication Group #17696

Closed gdavison closed 2 years ago

gdavison commented 3 years ago

Community Note

Description

The PRs #15885 and #17615 add basic support for ElastiCache Global Replication Groups. However, only the global_replication_group_description field can be updated. The ElastiCache API allows updating AutomaticFailoverEnabled, CacheNodeType, CacheParameterGroupName, and EngineVersion once a Global Replication Group has been created.

Add the ability to modify these parameters during an Update operation and call the Update operation as part of the Create operation.

Affected Resource

References

marinsalinas commented 3 years ago

Hey @gdavison running into some issues when updating some of the parameters from replication_group that belongs to a global_replication_group, such as replicas_per_node_group. As far as I understand in the description, some of the attributes should be changed at global_replication_group level, but I think the replicas per node should be changed at the regional replication group level.

Here is the error we are getting:

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

Basically, we are using the same configuration from the example. cc @bflad @maryelizbeth should we create another ticket or we can track on this ticket since it is related?

gdavison commented 3 years ago

Hi @marinsalinas. Can you create a separate issue for that? It's a related issue, but will need to be solved separately. In your issue, can you also show which parameters are changing?

marinsalinas commented 2 years ago

Hello @gdavison, we are still having issues when trying to update a global replication group similarly we had on https://github.com/hashicorp/terraform-provider-aws/issues/19929

The parameter we wanted to update is the engine version.

github-actions[bot] commented 2 years ago

This functionality has been released in v4.35.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[bot] commented 1 year 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.