We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b0068 commit 0964602Copy full SHA for 0964602
java-vertexai/.cloud/main.tf
@@ -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
@@ -0,0 +1,7 @@
+variable "inputs" {
+ type = object({
+ project_id = string
+ should_enable_apis_on_apply = bool
+ should_disable_apis_on_destroy = bool
+ })
0 commit comments