Closed Shivang44 closed 4 years ago
Made this request in the provider itself https://github.com/terraform-providers/terraform-provider-aws/issues/11313
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.
Current Terraform Version
Use-cases
When creating an elasticache redis cluster (with cluster mode disabled) you get a "primary" endpoint and a read-only "reader" endpoint. The
aws_elasticache_replication_group
doesn't output the reader endpoint, despite this information being displayed (both the primary and reader) when you click the redis cluster in AWS: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Endpoints.htmlAttempted Solutions
A workaround right now is to
replace
the word "master" in the primary endpoint with "replica". However this seems brittle as AWS could change their naming scheme. It would be nice to use theReader URL
returned directly in the AWS response.Proposal
add
reader_endpoint_address
to the output ofaws_elasticache_replication_group