-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathterraform.tfvars.sample
143 lines (127 loc) · 3.79 KB
/
terraform.tfvars.sample
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# Copyright 2023 Google LLC All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Project Specific Variables
project = "PROJECT_ID"
resource_env_label = "demo-global-game"
# Cloud Deploy Configuration
platform_directory = "../platform" # Relative to Terraform directory
services_directory = "../services" # Relative to Terraform directory
schema_directory = "../infrastructure/schema" # Relative to Terraform directory
clouddeploy_config = {
"location" : "us-central1"
}
# VPC Regions & associated subnet CIDRs Values
vpc_name = "global-game-vpc"
vpc_regions = {
"us-central1" : {
"vpc_subnet_cidr" : "10.1.0.0/16"
},
"europe-west1" : {
"vpc_subnet_cidr" : "10.4.0.0/16"
},
"asia-east1" : {
"vpc_subnet_cidr" : "10.8.0.0/16"
}
}
# Game GKE Cluster Config Values
game_gke_standard_clusters = {
"global-game-us-central1-01" : {
"short_name" : "us-central1-01",
"region" : "us-central1",
"machine_type" : "e2-standard-4"
},
"global-game-eu-west1-01" : {
"short_name" : "europe-west1-01",
"region" : "europe-west1",
"machine_type" : "e2-standard-4"
},
"global-game-asia-east1-01" : {
"short_name" : "asia-east1-01",
"region" : "asia-east1",
"machine_type" : "e2-standard-4"
}
}
game_gke_autopilot_clusters = {
"global-game-us-central1-02" : {
"short_name" : "us-central1-02",
"region" : "us-central1",
},
"global-game-eu-west1-02" : {
"short_name" : "europe-west1-02",
"region" : "europe-west1",
},
"global-game-asia-east1-02" : {
"short_name" : "asia-east1-02",
"region" : "asia-east1",
}
}
# GCP APIs to Enable
gcp_project_services = [
"anthos.googleapis.com",
"artifactregistry.googleapis.com",
"clouddeploy.googleapis.com",
"cloudbuild.googleapis.com",
"cloudresourcemanager.googleapis.com",
"compute.googleapis.com",
"container.googleapis.com",
"gameservices.googleapis.com",
"gkehub.googleapis.com",
"meshca.googleapis.com",
"meshconfig.googleapis.com",
"spanner.googleapis.com",
"secretmanager.googleapis.com",
"servicenetworking.googleapis.com",
"servicecontrol.googleapis.com",
"run.googleapis.com",
"orgpolicy.googleapis.com",
"redis.googleapis.com",
"run.googleapis.com",
"iap.googleapis.com"
]
# Spanner DB Config Values
spanner_config = {
db_name = "global-game-spanner-db"
instance_name = "global-game-spanner-instance"
location = "nam-eur-asia1"
num_nodes = 3
}
# Services GKE Config Values
services_gke_config = {
cluster_name = "global-game-services"
location = "us-central1"
resource_labels = {
environment = "staging"
}
}
# Frontend Service Config Values
frontend-service = {
client_id = "CLIENT_ID"
client_secret = "CLIENT_SECRET"
jwt_key = "r@nd0m$"
}
# Artifact Registry variables
### NOTE: If you change the Artifact registry location, please make sure to change `cloudbuild.yaml` in
### `services/clouddeploy.yaml;` as it is not dynamically created.
artifact_registry_config = {
location = "us"
}
# Agones Application Service Account Name
app_service_account_config = {
name = "app-service-account"
description = "Global Multiplayer Game service account"
}
# Agones GKE Service Account Name
k8s_service_account_id = "k8s-service-account"
# Github Personal Access Token
github_pat = "<GITHUB_PAT>"