-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add support for roles in google_sql_user #10438
Add support for roles in google_sql_user #10438
Comments
Is there some documentation for |
@arnisoph The best I've found is under the SqlServerUserDetails, which in spite of the name, does seem to apply to all three engines. Other than that, a person would probably have to experiment with the API to be certain. |
Yes please! This seems to be a basic feature that the provider should have. |
@enocom @rileykarson what about postgres & mysql? |
It seems I'm wrong: this applies to just SQL Server :-/ |
I think there's fairly sizeable amount of postres & mysql databases managed by Google too. When could we expect the same feature to land in those as well? This is a feature that prevents the system from being fully managed by Terraform. |
I agree this would be a useful addition to the Cloud SQL Admin API so we could support all engines. Since this isn't a Google provider limitation, let's track this work here: https://issuetracker.google.com/issues/195676939. Meanwhile, I'll bring this to the team that handles the Admin API. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Reopening this ticket. It is not actually resolved for any sql database types, even sql server. Per GoogleCloudPlatform/magic-modules#6165 (review) SqlServerUserDetails is actually read-only. |
Marking as a feature request because the only mention of this being available through other surfaces is the SqlServerUserDetails, which as mentioned above is read-only. If this can already be done through the API, someone please correct me and we can change this to a coverage gap. |
Community Note
Description
The SqlServerUserDetails in the SQL Admin API supports specifying
serverRoles
that will be attached to a user on creation. This is a request to expose that functionality in thegoogle_sql_user
resource.New or Affected Resource(s)
Potential Terraform Configuration
References
b/314111627
The text was updated successfully, but these errors were encountered: