-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
47 lines (37 loc) · 1.21 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Define the neudesicgcp project
# Use the Google provider
provider "google" {
version = "~> 1.20"
# Use the exsting terraform credentials; comment out if not using this.
# Note: provider can't use interpolation from local var defined below.
credentials = "${file("${path.module}/terraform-credentials.json")}"
}
# Use the atum-the-creator project bucket for state
terraform {
backend "gcs" {
bucket = "atum-the-creator"
prefix = "terraform/neudesicgcp"
}
}
locals {
terraform_creds = "${path.module}/terraform-credentials.json"
}
# Use Neudesic's project factory to create
module "neudesicgcp" {
source = "github.com/NeudesicGCP/terraform-project-factory"
project_id = "neudesicgcp"
display_name = "NeudesicGCP settings"
# Add the project to the 'foundations' folder
folder_id = "896328535275"
# Pass along the terraform credentials
terraform_credentials = "${local.terraform_creds}"
# Use existing Neudesic GCP organization
org_domain_name = "neudesic.com"
# Use the existing Neudesic GCP billing account
org_billing_name = "neugcp"
# APIs to enable
enable_apis = [
"compute.googleapis.com", # Compute drives many options
"dns.googleapis.com", # Enable DNS
]
}