Skip to content

Commit 0964602

Browse files
authored
ci: add vertex-ai .cloud configuration (#10635)
1 parent 11b0068 commit 0964602

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

java-vertexai/.cloud/main.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
terraform {
2+
required_providers {
3+
google = { source = "hashicorp/google" }
4+
}
5+
}
6+
resource "google_project_service" "aiplatform" {
7+
service = "aiplatform.googleapis.com"
8+
project = var.inputs.project_id
9+
count = var.inputs.should_enable_apis_on_apply ? 1 : 0
10+
disable_on_destroy = var.inputs.should_disable_apis_on_destroy
11+
}

java-vertexai/.cloud/variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
variable "inputs" {
2+
type = object({
3+
project_id = string
4+
should_enable_apis_on_apply = bool
5+
should_disable_apis_on_destroy = bool
6+
})
7+
}

0 commit comments

Comments
 (0)