Skip to content

Commit f32d711

Browse files
committed
formatting
1 parent 7a8675b commit f32d711

File tree

6 files changed

+81
-81
lines changed

6 files changed

+81
-81
lines changed

terraform/modules/api-gateway/networking.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource "google_compute_managed_ssl_certificate" "default" {
2929
managed {
3030
domains = ["api.httparchive.org"]
3131
}
32-
32+
3333
}
3434

3535
resource "google_compute_target_https_proxy" "default" {
@@ -40,7 +40,7 @@ resource "google_compute_target_https_proxy" "default" {
4040
project = var.project
4141
name = "httparchive-api-gateway-https-proxy"
4242
url_map = google_compute_url_map.default[count.index].id
43-
ssl_certificates = [google_compute_managed_ssl_certificate.default[count.index].id]
43+
ssl_certificates = [google_compute_managed_ssl_certificate.default[count.index].id]
4444
}
4545

4646
resource "google_compute_region_network_endpoint_group" "function_neg" {
@@ -57,7 +57,7 @@ resource "google_compute_region_network_endpoint_group" "function_neg" {
5757
platform = "apigateway.googleapis.com"
5858
resource = google_api_gateway_gateway.gateway.gateway_id
5959
}
60-
60+
6161
}
6262

6363
resource "google_compute_backend_service" "backend_neg" {
@@ -70,17 +70,17 @@ resource "google_compute_backend_service" "backend_neg" {
7070
load_balancing_scheme = "EXTERNAL_MANAGED"
7171
protocol = "HTTP"
7272
backend {
73-
group = google_compute_region_network_endpoint_group.function_neg[count.index].self_link
74-
}
75-
73+
group = google_compute_region_network_endpoint_group.function_neg[count.index].self_link
74+
}
75+
7676
}
7777

7878
resource "google_compute_url_map" "default" {
7979
#count = var.environment == "prod" ? 1 : 0
8080
count = 0
81-
81+
8282
provider = google-beta
8383
project = var.project
8484
name = "httparchive-api-gateway-url-map"
8585
default_service = google_compute_backend_service.backend_neg[count.index].self_link
86-
}
86+
}

terraform/modules/cloud-function/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ variable "secrets" {
33
}
44
variable "region" {
55
default = "us-east1"
6-
type = string
6+
type = string
77
}
88
variable "environment" {
99
description = "The 'Environment' that is being created/deployed. Applied as a suffix to many resources."

terraform/modules/service-account/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ resource "google_service_account" "service_account" {
66
display_name = var.display_name
77
}
88
resource "google_project_iam_member" "permissions" {
9-
for_each = toset(var.permissions)
10-
project = var.project
11-
role = each.key
12-
member = google_service_account.service_account.member
9+
for_each = toset(var.permissions)
10+
project = var.project
11+
role = each.key
12+
member = google_service_account.service_account.member
1313
depends_on = [google_service_account.service_account]
1414
}

terraform/modules/service-account/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ output "email" {
55
output "member" {
66
description = "The Identity of the service account in the form serviceAccount:{email}. This value is often used to refer to the service account in order to grant IAM permissions."
77
value = google_service_account.service_account.member
8-
}
8+
}

terraform/modules/service-account/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ variable "permissions" {
1414
default = []
1515
type = list(string)
1616
description = "A list of IAM Permissions for the Service Account"
17-
}
17+
}

terraform/prod/main.tf

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ resource "google_api_gateway_api_config" "api_config" {
2727
display_name = "The prod Config"
2828
openapi_documents {
2929
document {
30-
path = "spec.yaml"
30+
path = "spec.yaml"
3131
contents = base64encode(<<-EOF
3232
swagger: "2.0"
3333
info:
@@ -166,122 +166,122 @@ resource "google_api_gateway_gateway" "gateway" {
166166
}
167167

168168
module "cwvtech" {
169-
source = "./../modules/cloud-function"
170-
entry_point = "dispatcher"
171-
project = "httparchive"
172-
environment = "prod"
173-
source_directory = "../../functions/cwvtech"
174-
function_name = "cwvtech"
175-
service_account_email = var.google_service_account_cloud_functions
169+
source = "./../modules/cloud-function"
170+
entry_point = "dispatcher"
171+
project = "httparchive"
172+
environment = "prod"
173+
source_directory = "../../functions/cwvtech"
174+
function_name = "cwvtech"
175+
service_account_email = var.google_service_account_cloud_functions
176176
service_account_api_gateway = var.google_service_account_api_gateway
177177
environment_variables = {
178-
"PROJECT" = "httparchive",
178+
"PROJECT" = "httparchive",
179179
"DATABASE" = var.project_database
180180
}
181181
}
182182

183183
module "lighthouse" {
184-
source = "./../modules/cloud-function"
185-
entry_point = "dispatcher"
186-
project = "httparchive"
187-
environment = "prod"
188-
source_directory = "../../functions/lighthouse"
189-
function_name = "lighthouse"
190-
service_account_email = var.google_service_account_cloud_functions
184+
source = "./../modules/cloud-function"
185+
entry_point = "dispatcher"
186+
project = "httparchive"
187+
environment = "prod"
188+
source_directory = "../../functions/lighthouse"
189+
function_name = "lighthouse"
190+
service_account_email = var.google_service_account_cloud_functions
191191
service_account_api_gateway = var.google_service_account_api_gateway
192192
environment_variables = {
193-
"PROJECT" = "httparchive",
193+
"PROJECT" = "httparchive",
194194
"DATABASE" = var.project_database
195195
}
196196
}
197197

198198
module "adoption" {
199-
source = "./../modules/cloud-function"
200-
entry_point = "dispatcher"
201-
project = "httparchive"
202-
environment = "prod"
203-
source_directory = "../../functions/adoption"
204-
function_name = "adoption"
205-
service_account_email = var.google_service_account_cloud_functions
199+
source = "./../modules/cloud-function"
200+
entry_point = "dispatcher"
201+
project = "httparchive"
202+
environment = "prod"
203+
source_directory = "../../functions/adoption"
204+
function_name = "adoption"
205+
service_account_email = var.google_service_account_cloud_functions
206206
service_account_api_gateway = var.google_service_account_api_gateway
207207
environment_variables = {
208-
"PROJECT" = "httparchive",
208+
"PROJECT" = "httparchive",
209209
"DATABASE" = var.project_database
210210
}
211211
}
212212

213213
module "page-weight" {
214-
source = "./../modules/cloud-function"
215-
entry_point = "dispatcher"
216-
project = "httparchive"
217-
environment = "prod"
218-
source_directory = "../../functions/page-weight"
219-
function_name = "page-weight"
220-
service_account_email = var.google_service_account_cloud_functions
214+
source = "./../modules/cloud-function"
215+
entry_point = "dispatcher"
216+
project = "httparchive"
217+
environment = "prod"
218+
source_directory = "../../functions/page-weight"
219+
function_name = "page-weight"
220+
service_account_email = var.google_service_account_cloud_functions
221221
service_account_api_gateway = var.google_service_account_api_gateway
222222
environment_variables = {
223-
"PROJECT" = "httparchive",
223+
"PROJECT" = "httparchive",
224224
"DATABASE" = var.project_database
225225
}
226226
}
227227

228228
module "categories" {
229-
source = "./../modules/cloud-function"
230-
entry_point = "dispatcher"
231-
project = "httparchive"
232-
environment = "prod"
233-
source_directory = "../../functions/categories"
234-
function_name = "categories"
235-
service_account_email = var.google_service_account_cloud_functions
229+
source = "./../modules/cloud-function"
230+
entry_point = "dispatcher"
231+
project = "httparchive"
232+
environment = "prod"
233+
source_directory = "../../functions/categories"
234+
function_name = "categories"
235+
service_account_email = var.google_service_account_cloud_functions
236236
service_account_api_gateway = var.google_service_account_api_gateway
237237
environment_variables = {
238-
"PROJECT" = "httparchive",
238+
"PROJECT" = "httparchive",
239239
"DATABASE" = var.project_database
240240
}
241241
}
242242

243243
module "technologies" {
244-
source = "./../modules/cloud-function"
245-
entry_point = "dispatcher"
246-
project = "httparchive"
247-
environment = "prod"
248-
source_directory = "../../functions/technologies"
249-
function_name = "technologies"
250-
service_account_email = var.google_service_account_cloud_functions
244+
source = "./../modules/cloud-function"
245+
entry_point = "dispatcher"
246+
project = "httparchive"
247+
environment = "prod"
248+
source_directory = "../../functions/technologies"
249+
function_name = "technologies"
250+
service_account_email = var.google_service_account_cloud_functions
251251
service_account_api_gateway = var.google_service_account_api_gateway
252-
min_instances = var.min_instances
252+
min_instances = var.min_instances
253253
environment_variables = {
254-
"PROJECT" = "httparchive",
254+
"PROJECT" = "httparchive",
255255
"DATABASE" = var.project_database
256256
}
257257
}
258258

259259
module "ranks" {
260-
source = "./../modules/cloud-function"
261-
entry_point = "dispatcher"
262-
project = "httparchive"
263-
environment = "prod"
264-
source_directory = "../../functions/ranks"
265-
function_name = "ranks"
266-
service_account_email = var.google_service_account_cloud_functions
260+
source = "./../modules/cloud-function"
261+
entry_point = "dispatcher"
262+
project = "httparchive"
263+
environment = "prod"
264+
source_directory = "../../functions/ranks"
265+
function_name = "ranks"
266+
service_account_email = var.google_service_account_cloud_functions
267267
service_account_api_gateway = var.google_service_account_api_gateway
268268
environment_variables = {
269-
"PROJECT" = "httparchive",
269+
"PROJECT" = "httparchive",
270270
"DATABASE" = var.project_database
271271
}
272272
}
273273

274274
module "geos" {
275-
source = "./../modules/cloud-function"
276-
entry_point = "dispatcher"
277-
project = "httparchive"
278-
environment = "prod"
279-
source_directory = "../../functions/geos"
280-
function_name = "geos"
281-
service_account_email = var.google_service_account_cloud_functions
275+
source = "./../modules/cloud-function"
276+
entry_point = "dispatcher"
277+
project = "httparchive"
278+
environment = "prod"
279+
source_directory = "../../functions/geos"
280+
function_name = "geos"
281+
service_account_email = var.google_service_account_cloud_functions
282282
service_account_api_gateway = var.google_service_account_api_gateway
283283
environment_variables = {
284-
"PROJECT" = "httparchive",
284+
"PROJECT" = "httparchive",
285285
"DATABASE" = var.project_database
286286
}
287287
}

0 commit comments

Comments
 (0)