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: Return host, port, and database as attributes in crunchybridge_clusterroles roles #12

Closed
kinghuang opened this issue Jul 19, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@kinghuang
Copy link

The crunchybridge_clusterroles data source provides database connection information for each role as name, password, and uri. It would be nice if it provided host, port and database too instead of just the uri, so that the values can be easily passed to other things such as the config of the cyrilgdn/postgresql provider.

I'm parsing the information out of the uri with the following regex.

uri_parts = regex("^postgres://(?P<username>[^:]+):(?P<password>.+)@(?P<host>[^:]+):(?P<port>\\d+)/(?P<database>.*)$", data.crunchybridge_clusterroles.corpdoc.superuser.uri)
@wilybrace wilybrace added the duplicate This issue or pull request already exists label Jul 19, 2024
@wilybrace
Copy link
Collaborator

Duplicate of #3

@wilybrace wilybrace marked this as a duplicate of #3 Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants