-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
32 lines (26 loc) · 1012 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Get the project and organization details
data "google_organization" "default" {
organization = "organizations/${var.organization_id}"
}
resource "google_project_service" "required_apis" {
for_each = toset(["cloudresourcemanager.googleapis.com", "serviceusage.googleapis.com", "compute.googleapis.com"])
service = each.key
}
resource "google_service_account" "sa" {
account_id = "cloud-foundation-forseti"
}
//noinspection MissingModule
module "forseti" {
source = "terraform-google-modules/forseti/google"
version = "v5.0.3"
domain = data.google_organization.default.domain
project_id = var.project_id
org_id = var.organization_id
config_validator_enabled = var.config_validator_enabled
gsuite_admin_email = var.gsuite_admin_email
forseti_version = var.forseti_version
folder_id = var.folder_id
server_type = var.server_type
server_region = var.server_region
cloudsql_region = var.cloudsql_region
}