Skip to content

Commit

Permalink
fix: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gericdong committed Dec 20, 2023
1 parent 9281b0a commit 9cc203a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vertex_ai/metadata_store_cmek/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ resource "google_kms_crypto_key" "default" {
key_ring = google_kms_key_ring.default.id
}

# Enable the service account to encrypt/decrypt Cloud KMS keys
data "google_project" "project" {
data "google_project" "default" {
}

resource "google_project_iam_member" "service_account_access" {
project = data.google_project.project.project_id
# Enable the service account to encrypt/decrypt Cloud KMS keys
resource "google_project_iam_member" "default" {
project = data.google_project.default.project_id
role = "roles/cloudkms.cryptoKeyEncrypterDecrypter"
member = "serviceAccount:service-${data.google_project.project.number}@gcp-sa-aiplatform.iam.gserviceaccount.com"
member = "serviceAccount:service-${data.google_project.default.number}@gcp-sa-aiplatform.iam.gserviceaccount.com"
}
# [END aiplatform_create_metadata_store_cmek]

0 comments on commit 9cc203a

Please sign in to comment.