Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 AlloyDB user support #8431
Add AlloyDB user support #8431
Changes from all commits
bfb1644
1d63878
c090453
92a1a1c
350325c
7db7e17
7981267
44fa955
5e3592a
eda0326
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it preferable to have this set up as a single parent resource rather than a series of project/location/cluster?
Generally we have each broken out into an individual field.
cc @GauravJain21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would mean that the user has to set it's location and I'd argue this resource isn't a regional object on it's own but rather part of a regional object.
As the cluster dictates what region the user resides in I wouldn't give the user the option to specify location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. On the other hand existing resources like
google_sql_user
work this way, where the project and instance are both specified independently: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_user#projectThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The biggest difference here is that
google_sql_user
doesn't rely on a region in his end-point nor is it a field that can be set.It is implied that it lives in the region where the instance resides in.
POST https://sqladmin.googleapis.com/v1/projects/{project}/instances/{instance}/users
I am curious what others believe the right approach is here.