Closed rohitjha941 closed 6 months ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @rohitjha941 👋 Thank you for taking the time to raise this! As apparentlymart
mentioned in the Discuss forum post, this is a situation where the API doesn't currently offer a way to determine what the value of member_clusters
will be during plan time, so it's not currently possible for the AWS provider to be altered in the way that you're looking for.
If a targeted apply won't work in your case, the other option would be to break the configuration up so that one configuration is applied after the other, once the member_clusters
value is know.
Since this isn't something we can currently action, I'll close this issue. If there is a change in behavior on the API side at a later time, we'd be happy to take another look.
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.
Description
I want to create cloud watch alarms on all of the member clusters of elastic cache. I am getting the following error.
I asked the same question in Hashicorp Forum. I got the following response
I feel like using Target is not a good option. Ideally, I would like to have a module which would create Cache and Alarms at the same time. I would like aws providers to expose
member_clusters
inaws_elasticache_replication_group
compatible withfor_each
so that we can CloudWatch alarmsAffected Resource(s) and/or Data Source(s)
aws_elasticache_replication_group
Potential Terraform Configuration
References
Terraform Discussion
Would you like to implement a fix?
None