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

fix: Argument replication_group_id conflicts with engine and log_delivery_configuration #10

Merged

Conversation

magreenbaum
Copy link
Member

@magreenbaum magreenbaum commented Jul 17, 2024

Description

replication_group_id conflicts with engine.
log_delivery_configuration in aws_elasticache_cluster should not be set if replication_group_id is set since cluster is being added to a replication group which can have its own log_delivery_configuration. Produces error like InvalidParameterCombination: Cannot specify additional cache cluster parameters when creating a replica cluster.

Motivation and Context

Related to:

https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Replication.CreatingReplGroup.ExistingCluster.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticache_cluster#redis-cluster-mode-disabled-read-replica-instance
https://github.com/hashicorp/terraform-provider-aws/blob/0452bb53c686a9ac565febcc6d0ce02da18a0d8d/internal/service/elasticache/cluster.go#L143
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticache_cluster#engine

Breaking Changes

No.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@magreenbaum magreenbaum changed the title fix: replication_group_id conflicts with engine and log_delivery_configuration fix: Argument replication_group_id conflicts with engine and log_delivery_configuration Jul 17, 2024
@magreenbaum magreenbaum requested a review from bryantbiggs July 20, 2024 00:28
@bryantbiggs bryantbiggs merged commit 97bc4b5 into terraform-aws-modules:master Aug 4, 2024
15 checks passed
antonbabenko pushed a commit that referenced this pull request Aug 4, 2024
## [1.2.2](v1.2.1...v1.2.2) (2024-08-04)

### Bug Fixes

* Argument `replication_group_id` conflicts with `engine` and `log_delivery_configuration` ([#10](#10)) ([97bc4b5](97bc4b5))
@antonbabenko
Copy link
Member

This PR is included in version 1.2.2 🎉

@magreenbaum magreenbaum deleted the fix/replication_group_id branch August 4, 2024 23:55
Copy link

github-actions bot commented Sep 4, 2024

I'm going to lock this pull request 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 related to this change, 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 Sep 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with replication_group_id Issue with replication group id variable
3 participants