-
Notifications
You must be signed in to change notification settings - Fork 427
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
fix: port iam_users from postgresql module #467
fix: port iam_users from postgresql module #467
Conversation
b78392a
to
5e3495a
Compare
Signed-off-by: John Jelinek <john.jelinek@liveramp.com>
5e3495a
to
fc04174
Compare
Signed-off-by: John Jelinek <john.jelinek@liveramp.com>
fc04174
to
4e7f5f6
Compare
@g-awmalik: please let me know if anything is missing. I'm not sure why the |
OH! I have been updating my commits to follow the convention, I didn't realize it also wanted that for the PR subject too. Thanks @apeabody! |
Sure thing, it's probably not clear in the check status, but for this repo only the PR's title is considered. |
/gcbrun |
/gcbrun |
/gcbrun |
I can't see where it broke the build. |
/gcbrun |
The example points to v5.6 for mysql which does not support IAM users. I just updated that to 8.0. |
Good catch! |
@johnjelinek - now it's complaining about the format of the service account: "Error: Error, failed to insert user cloudsql-mysql-sa-01@ci-sql-db-c902.iam into instance example-mysql-private-ad63128b: googleapi: Error 400: Invalid request: Database user cannot be created. Provided Cloud IAM service account "cloudsql-mysql-sa-01@ci-sql-db-c902.iam" is not in valid format. Please specify full service account email address Eg: serviceaccount@projectid.iam.gserviceaccount.com." Can you please check the logic? |
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 updated the code to leverage the service account established in the test fixture.
/gcbrun |
Signed-off-by: John Jelinek <john.jelinek@liveramp.com>
Signed-off-by: John Jelinek <john.jelinek@liveramp.com>
792366a
to
39f62d8
Compare
@g-awmalik: try again, I had forgotten to sign the last commits. |
/gcbrun |
I'm not sure what the build is upset about this time. |
/gcbrun |
/gcbrun |
1 similar comment
/gcbrun |
Fixes #463. Adds
iam_users
variable to add service accounts and IAM users to a CloudSQL database running MySQL.