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

feat(data_source): added default_user data source to fetch data from configured provider #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lukas8219
Copy link

@lukas8219 lukas8219 commented Nov 11, 2024

Feature

New dataSource to fetch the configured provider Username.

Why

Since it's not possible to do natively in Terraform something like rabbitmq.username it makes it harder to modularize default configurations or becoems cumbersome to require adding a variable to injected in the module just to use the default user.
Defining this data source makes it possible to move this logic to inside a child module.

Notes

I did try to re-use the dataSourcesReadUser function but I was having this panic: interface conversion: interface {} is nil, not string. An easy workaround is to simply use the data source to fetch the info

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

Successfully merging this pull request may close these issues.

1 participant