-
Notifications
You must be signed in to change notification settings - Fork 234
Data sources for roles #6
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
Comments
Hi @dcuenot, What fields would you like to have in this data? I already had the same thought but at the end, I concluded that I only need the role name (to use in a |
Hi @cyrilgdn, Regarding the fields I need in this data, I don't have a clear answer, because I'm not an expert in Terraform. In my code, I have a first step to create my Azure PostgreSQL server:
After this creation, I'm creating some roles in this server:
And what I want to do, is to add Thanks in advance for your help |
If you want to resource "postgresql_role" "admin" {
name = "admin"
login = false
roles = [
"my-admin"
]
} But if you want to You'll be able to write: resource postgresql_grant_role "my_admin" {
role = "my-admin"
grant_role = "admin
} |
@dcuenot FYI, v1.9.0 has just been released with the new |
I just tested it, and it's working perfectly! Thanks |
chore: Update changelog
Hi,
First, well done for your provider, it's very useful!
I have a feature request, do you plan to Data sources for existing roles?
Expected code could be like this:
And my expected behaviour is to load an existing role, and to grant new roles to it.
Thanks in advance for your feedback
Regards
Damien
The text was updated successfully, but these errors were encountered: