Skip to content
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

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

gericdong
Copy link
Contributor

Description

Fixes b/317093604

  • Update the basic metadata store sample
  • Add a new sample for creating metadata store with cmek

Doc page: https://cloud.google.com/vertex-ai/docs/ml-metadata/configure

@gericdong gericdong requested review from a team as code owners December 19, 2023 19:34
Copy link

snippet-bot bot commented Dec 19, 2023

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

Copy link
Contributor

@msampathkumar msampathkumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@msampathkumar msampathkumar self-assigned this Dec 20, 2023
@msampathkumar
Copy link
Contributor

@gericdong - Please check and merge.

data "google_project" "project" {
}

resource "google_project_iam_member" "service_account_access" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data "google_project" "project" {
data "google_project" "default" {

Copy link
Contributor

@msampathkumar msampathkumar left a 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!

@msampathkumar msampathkumar enabled auto-merge (squash) December 20, 2023 15:33
@msampathkumar msampathkumar merged commit 769fec1 into terraform-google-modules:main Dec 20, 2023
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants