Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 3.68 KB

README.md

File metadata and controls

59 lines (37 loc) · 3.68 KB

GenAI Quickstart Infrastructure

This creates the infrastructure for the GenAI quickstart guide.

How to run

terraform init

terraform plan

terraform apply

terraform destroy

Architecture and Design

Alt GKE Architecture

IAM bindings reference

Legend: + additive, conditional.

Organization [org_id]

members roles

Project [project_id]

members roles
user
User
roles/owner +
sa-gke-cluster
Service account
roles/artifactregistry.reader + · roles/container.developer + · roles/container.nodeServiceAgent + · roles/logging.logWriter + · roles/monitoring.metricWriter + · roles/monitoring.viewer + · roles/stackdriver.resourceMetadata.writer +
sa-gke-aiplatform
Service account
roles/aiplatform.user + · roles/storage.user +
sa-gke-telemetry
Service account
roles/cloudtrace.agent +

Files

name description modules resources
bootstrap.tf Bootstrapping prerequisites for project.
cicd.tf Recources created to CI/CD pipeline. google_artifact_registry_repository
gke.tf GKE Autopilot cluster for running GenAI workloads. gke
iam.tf IAM resources for project needed by Cloud resources. member_roles_gke, member_roles_aiplatform, member_roles_telemetry, member_roles_cloudbuild google_service_account.sa_gke_cluster, google_service_account.sa_gke_aiplatform, google_service_account.sa_gke_telemetry · google_service_account_iam_binding.sa_gke_cluster_wi_binding, google_service_account_iam_binding.sa_gke_aiplatform_wi_binding, google_service_account_iam_binding.sa_gke_telemetry_wi_binding
net.tf VPC network and firewall rules. vpc
spanner.tf Spanner instance/database for NPC Chat demo. spanner

Variables

name description type required default
project_id Unique project ID to host project resources. string ""

Outputs

name description sensitive consumers