Skip to content

Commit

Permalink
ci: add vertex-ai .cloud configuration (#10635)
Browse files Browse the repository at this point in the history
  • Loading branch information
burkedavison authored Mar 28, 2024
1 parent 11b0068 commit 0964602
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions java-vertexai/.cloud/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
terraform {
required_providers {
google = { source = "hashicorp/google" }
}
}
resource "google_project_service" "aiplatform" {
service = "aiplatform.googleapis.com"
project = var.inputs.project_id
count = var.inputs.should_enable_apis_on_apply ? 1 : 0
disable_on_destroy = var.inputs.should_disable_apis_on_destroy
}
7 changes: 7 additions & 0 deletions java-vertexai/.cloud/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
variable "inputs" {
type = object({
project_id = string
should_enable_apis_on_apply = bool
should_disable_apis_on_destroy = bool
})
}

0 comments on commit 0964602

Please sign in to comment.