forked from googleapis/google-cloud-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
23 lines (23 loc) · 735 Bytes
/
main.tf
File metadata and controls
23 lines (23 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
terraform {
required_providers {
google = {
source = "hashicorp/google"
}
}
}
resource "google_project_service" "dialogflow" {
service = "dialogflow.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
}
locals {
agent_display_name = "google-cloud-java-tests"
}
resource "google_dialogflow_agent" "design_time_agent" {
display_name = local.agent_display_name
default_language_code = "en"
time_zone = "America/Los_Angeles"
match_mode = "MATCH_MODE_HYBRID"
depends_on = [google_project_service.dialogflow]
}