-
Notifications
You must be signed in to change notification settings - Fork 239
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
feat: update/add new samples for metadata store #559
feat: update/add new samples for metadata store #559
Conversation
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
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.
LGTM
@gericdong - Please check and merge. |
data "google_project" "project" { | ||
} | ||
|
||
resource "google_project_iam_member" "service_account_access" { |
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.
resource "google_project_iam_member" "service_account_access" { | |
resource "google_project_iam_member" "default" { |
kms_key_name = google_kms_crypto_key.default.id | ||
} | ||
|
||
depends_on = [google_project_iam_member.service_account_access] |
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.
depends_on = [google_project_iam_member.service_account_access] | |
depends_on = [google_project_iam_member.default] |
key_ring = google_kms_key_ring.default.id | ||
} | ||
|
||
# Enable the service account to encrypt/decrypt Cloud KMS keys |
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.
Below comment is defined just above data "google_project" "project"
Kindly move this to appropriate place.
# Enable the service account to encrypt/decrypt Cloud KMS keys
} | ||
|
||
resource "google_project_iam_member" "service_account_access" { | ||
project = data.google_project.project.project_id |
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.
project = data.google_project.project.project_id | |
project = data.google_project.default.project_id |
} | ||
|
||
# Enable the service account to encrypt/decrypt Cloud KMS keys | ||
data "google_project" "project" { |
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.
data "google_project" "project" { | |
data "google_project" "default" { |
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.
Please check added suggestions!
769fec1
into
terraform-google-modules:main
Description
Fixes b/317093604
Doc page: https://cloud.google.com/vertex-ai/docs/ml-metadata/configure