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

Feature request: support privatelink hostname for cockroach_connection_string #198

Open
shellderp opened this issue Apr 9, 2024 · 2 comments

Comments

@shellderp
Copy link

shellderp commented Apr 9, 2024

The data source cockroach_connection_string currently doesn't seem to have any options and only returns the public connection string. I would like an option to get the privatelink connection string.

@fantapop
Copy link
Collaborator

fantapop commented Apr 9, 2024

Hi @shellderp Thanks for your interest here and for taking the time to submit a feature request. We agree that this would be useful and are tracking it internally. The best workaround we have currently is to construct the url yourself by using the connection_string data source (docs). You'll need to add the internal- prefix manually.

@shellderp
Copy link
Author

Actually I was able to use the data.cockroach_cluster.cluster.regions[region].internal_dns for this. Might not be needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants