Updated tf file to add the following features:
- default location of dataset to US - changed name of vertex metastore to "default" - add ai user and service account us to notebook SA - add ai user to vertex sa
This commit is contained in:
parent
50856e6951
commit
a51c682005
|
@ -160,6 +160,7 @@ module "dataset" {
|
|||
project_id = module.project.project_id
|
||||
id = "${replace(var.prefix, "-", "_")}_data"
|
||||
encryption_key = try(local.service_encryption_keys.bq, null) # Example assignment of an encryption key
|
||||
location = "US"
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
|
@ -168,7 +169,7 @@ module "dataset" {
|
|||
resource "google_vertex_ai_metadata_store" "store" {
|
||||
provider = google-beta
|
||||
project = module.project.project_id
|
||||
name = "${var.prefix}-metadata-store"
|
||||
name = "default" #"${var.prefix}-metadata-store"
|
||||
description = "Vertex Ai Metadata Store"
|
||||
region = var.region
|
||||
#TODO Check/Implement P4SA logic for IAM role
|
||||
|
@ -189,6 +190,8 @@ module "service-account-notebook" {
|
|||
"roles/bigquery.user",
|
||||
"roles/dialogflow.client",
|
||||
"roles/storage.admin",
|
||||
"roles/aiplatform.user",
|
||||
"roles/iam.serviceAccountUser"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -205,6 +208,7 @@ module "service-account-vertex" {
|
|||
"roles/bigquery.user",
|
||||
"roles/dialogflow.client",
|
||||
"roles/storage.admin",
|
||||
"roles/aiplatform.user"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -234,6 +238,12 @@ resource "google_notebooks_instance" "playground" {
|
|||
|
||||
service_account = module.service-account-notebook.email
|
||||
|
||||
# Enable Secure Boot
|
||||
|
||||
shielded_instance_config {
|
||||
enable_secure_boot = true
|
||||
}
|
||||
|
||||
# Remove once terraform-provider-google/issues/9164 is fixed
|
||||
lifecycle {
|
||||
ignore_changes = [disk_encryption, kms_key]
|
||||
|
|
Loading…
Reference in New Issue