Closed robbertkauffman closed 3 years ago
@robbertkauffman closing this issue as Terraform simply returns what's available in the API and CSRS hostnames are not returned - we cannot address this. This would be a better request to something like feedback.mongodb.com as it's not a bug but a feature/info request.
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
Steps to Reproduce
terraform init
terraform apply
Expected Behavior
One of the outputted connection strings (or via a separate exposed attribute), should include the CSRS (config server) hostnames. These hostnames are required when using a key manager like Azure Key Vault and access to the key manager is restricted to only allowed IPs. Without whitelisting the CSRS IPs, the cluster will not be able to be created (cluster automation will hang while trying to obtain the encryption keys).
Actual Behavior
All outputted connection strings contain the hostnames of the RS nodes only. Not the config server nodes.
Additional context
The reason why I consider this a bug rather than a feature request, is because CSRS hostnames/IPs are needed when setting network ACLs to key managers like Azure Key Vault. I currently have to use regex in order to 'get' the CSRS hostnames but this seems hacky.