-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Tags cannot be updated on redis aws_elasticache_replication_group resources #5366
Comments
This is semi-related to #1615 -- the Elasticache API and Terraform treat the underlying Elasticache clusters as separate resources compared to the top level replication group. |
@bflad but the first time you create the replication group it will be populated to the underlying clusters, do you have any workaround for this? |
Running into the same issue myself. @bflad @mangobatao have either of you found a workaround? Appreciate it. |
@bflad @mikefodor I am experiencing related problem: #5021 I tried to destroy and applied a new one, the problem is able to workaround. I am using an older version though:
|
@zhangxin511 what's your workaround? can you share the details? |
@mangobatao Sorry for confuse you, I mean by run |
Hi @mikefodor - as noted here, this functionality isn't supported by the AWS API right now, and since we as a general rule are only committing to providing the same functionality supported by the underlying APIs, this ability to modify tags isn't something that we're planning to add right now. |
Does this same issue apply to |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
> ./terraform -v
Terraform v0.11.7
+ provider.aws v1.29.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/mikefodor/b41dc4ad06897b66355366babd0e8e05
Panic Output
Expected Behavior
The Tags on existing cache clusters in the aws_elasticache_replication_group should be updated with the new values.
Actual Behavior
When applying changes to the tags on the aws_elasticache_replication_group the tags on the
Terraform behaves like it applied the change but no change was made in AWS
If new cache clusters are created in this aws_elasticache_replication_group they have the old set of tags. The tags only get applied on the initial creation of the aws_elasticache_replication_group. To apply a new set of tags appears to require destroying and rebuilding the aws_elasticache_replication_group.
Steps to Reproduce
terraform apply
terraform apply
Important Factoids
References
I'm aware of the issue with elasticache tagging on cross accounts but this doesn't seem related. Cross account roles are not being used in this case and there are no errors generated by terraform when trying to create or modify the resources.
The text was updated successfully, but these errors were encountered: