Skip to content

Commit 42246b0

Browse files
committed
format Terraform
1 parent ef44f3a commit 42246b0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

terraform/dev/main.tf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,16 @@ resource "google_api_gateway_gateway" "gateway" {
136136
}
137137

138138
module "endpoints" {
139-
source = "./../modules/run-service"
140-
entry_point = "app"
141-
project = var.project
142-
environment = var.environment
143-
source_directory = "../../src"
144-
function_name = "tech-report-api"
145-
region = var.region
146-
service_account_email = var.google_service_account_cloud_functions
147-
service_account_api_gateway = var.google_service_account_api_gateway
148-
min_instances = var.min_instances
139+
source = "./../modules/run-service"
140+
entry_point = "app"
141+
project = var.project
142+
environment = var.environment
143+
source_directory = "../../src"
144+
function_name = "tech-report-api"
145+
region = var.region
146+
service_account_email = var.google_service_account_cloud_functions
147+
service_account_api_gateway = var.google_service_account_api_gateway
148+
min_instances = var.min_instances
149149
environment_variables = {
150150
"PROJECT" = var.project
151151
"DATABASE" = var.project_database

terraform/modules/run-service/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ resource "google_cloudfunctions2_function_iam_member" "api_gw_variable_service_a
8181
location = google_cloudfunctions2_function.function.location
8282
cloud_function = google_cloudfunctions2_function.function.name
8383
role = "roles/cloudfunctions.invoker"
84-
member = "serviceAccount:${var.service_account_api_gateway}"
85-
depends_on = [google_cloudfunctions2_function.function]
84+
member = "serviceAccount:${var.service_account_api_gateway}"
85+
depends_on = [google_cloudfunctions2_function.function]
8686
}
8787

8888
resource "google_cloud_run_v2_service_iam_member" "api_gw_variable_service_account_run_invoker" {

0 commit comments

Comments
 (0)