-
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
Support multiple users with the same name for different host for 1st gen. #1066
Conversation
--- PASS: TestAccGoogleSqlUser_firstGen (86.56s)
--- PASS: TestAccGoogleSqlUser_secondGen (508.87s) |
google/resource_sql_user_test.go
Outdated
resource "google_sql_user" "user" { | ||
name = "user%s" | ||
resource "google_sql_user" "user1" { | ||
name = "john" |
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.
I'm sorry to be That Person but can we use a gender-neutral name here?
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.
Sure. Changed for admin
.
database_version = "POSTGRES_9_6" | ||
database_version = "MYSQL_5_6" | ||
# First-generation instance regions are not the conventional | ||
# Google Compute Engine region. See argument reference below. |
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.
nit: regions
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.
Done
region = "us-central1" | ||
|
||
settings { | ||
# Second-generation instance tier are based on the machine |
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.
nit: tiers
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.
Done
@@ -52,6 +49,10 @@ The following arguments are supported: | |||
|
|||
- - - | |||
|
|||
* `host` - (Optional) The host the user can connect from. This is only supported | |||
for first generation SQL instance. Don't set this field for second generation |
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.
nit: instances
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.
done
@@ -52,6 +49,10 @@ The following arguments are supported: | |||
|
|||
- - - | |||
|
|||
* `host` - (Optional) The host the user can connect from. This is only supported | |||
for first generation SQL instance. Don't set this field for second generation | |||
SQL instance. Can be an IP address. Changing this forces a new resource to be created. |
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.
nit: instances
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.
done
…gen. (hashicorp#1066) * Support multiple users with the same name for different host for 1st gen. * Fix typo and rename user
Signed-off-by: Modular Magician <[email protected]>
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Fixes #1057
D0
for aPOSTGRES_9_6
instance is not a valid tier.