File tree Expand file tree Collapse file tree 4 files changed +23
-39
lines changed Expand file tree Collapse file tree 4 files changed +23
-39
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ provider "google" {
19
19
}
20
20
21
21
provider "google-beta" {
22
- project = var. project
23
- region = var. region
22
+ project = var. project
23
+ region = var. region
24
24
}
25
25
26
26
# Get current Google Cloud access token
@@ -36,12 +36,12 @@ provider "docker" {
36
36
}
37
37
38
38
module "gateway" {
39
- source = " ./../modules/api-gateway"
40
- project = var. project
41
- environment = var. environment
42
- region = var. region
43
- service_account_email = var. google_service_account_api_gateway
44
- spec_yaml = << EOF
39
+ source = " ./../modules/api-gateway"
40
+ project = var. project
41
+ environment = var. environment
42
+ region = var. region
43
+ service_account_email = var. google_service_account_api_gateway
44
+ spec_yaml = << EOF
45
45
swagger: "2.0"
46
46
info:
47
47
title: reports_api_config_dev
@@ -148,15 +148,15 @@ module "endpoints" {
148
148
149
149
moved {
150
150
from = google_api_gateway_api. api
151
- to = module. gateway . google_api_gateway_api . api
151
+ to = module. gateway . google_api_gateway_api . api
152
152
}
153
153
154
154
moved {
155
155
from = google_api_gateway_api_config. api_config
156
- to = module. gateway . google_api_gateway_api_config . api_config
156
+ to = module. gateway . google_api_gateway_api_config . api_config
157
157
}
158
158
159
159
moved {
160
160
from = google_api_gateway_gateway. gateway
161
- to = module. gateway . google_api_gateway_gateway . gateway
161
+ to = module. gateway . google_api_gateway_gateway . gateway
162
162
}
Original file line number Diff line number Diff line change 1
1
variable "environment" {
2
2
description = " The 'Environment' that is being created/deployed. Applied as a suffix to many resources."
3
3
type = string
4
- default = " dev"
4
+ default = " dev"
5
5
}
6
6
variable "project" {
7
7
description = " The ID of the project in which the resource belongs. If it is not provided, the provider project is used."
Original file line number Diff line number Diff line change @@ -54,14 +54,6 @@ resource "google_cloud_run_v2_service" "service" {
54
54
}
55
55
}
56
56
57
- resource "google_cloudfunctions2_function_iam_member" "variable_service_account_function_invoker" {
58
- project = google_cloud_run_v2_service. service . project
59
- location = google_cloud_run_v2_service. service . location
60
- cloud_function = google_cloud_run_v2_service. service . name
61
- role = " roles/cloudfunctions.invoker"
62
- member = " serviceAccount:${ var . service_account_email } "
63
- }
64
-
65
57
resource "google_cloud_run_v2_service_iam_member" "variable_service_account_run_invoker" {
66
58
project = var. project
67
59
location = var. region
@@ -70,14 +62,6 @@ resource "google_cloud_run_v2_service_iam_member" "variable_service_account_run_
70
62
member = " serviceAccount:${ var . service_account_email } "
71
63
}
72
64
73
- resource "google_cloudfunctions2_function_iam_member" "api_gw_variable_service_account_function_invoker" {
74
- project = google_cloud_run_v2_service. service . project
75
- location = google_cloud_run_v2_service. service . location
76
- cloud_function = google_cloud_run_v2_service. service . name
77
- role = " roles/cloudfunctions.invoker"
78
- member = " serviceAccount:${ var . service_account_api_gateway } "
79
- }
80
-
81
65
resource "google_cloud_run_v2_service_iam_member" "api_gw_variable_service_account_run_invoker" {
82
66
project = var. project
83
67
location = var. region
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ provider "google" {
18
18
}
19
19
20
20
provider "google-beta" {
21
- project = var. project
22
- region = var. region
21
+ project = var. project
22
+ region = var. region
23
23
}
24
24
25
25
@@ -38,12 +38,12 @@ provider "docker" {
38
38
39
39
40
40
module "gateway" {
41
- source = " ./../modules/api-gateway"
42
- project = var. project
43
- environment = var. environment
44
- region = var. region
45
- service_account_email = var. google_service_account_api_gateway
46
- spec_yaml = << EOF
41
+ source = " ./../modules/api-gateway"
42
+ project = var. project
43
+ environment = var. environment
44
+ region = var. region
45
+ service_account_email = var. google_service_account_api_gateway
46
+ spec_yaml = << EOF
47
47
swagger: "2.0"
48
48
info:
49
49
title: reports_api_config_prod
@@ -144,15 +144,15 @@ module "endpoints" {
144
144
145
145
moved {
146
146
from = google_api_gateway_api. api
147
- to = module. gateway . google_api_gateway_api . api
147
+ to = module. gateway . google_api_gateway_api . api
148
148
}
149
149
150
150
moved {
151
151
from = google_api_gateway_api_config. api_config
152
- to = module. gateway . google_api_gateway_api_config . api_config
152
+ to = module. gateway . google_api_gateway_api_config . api_config
153
153
}
154
154
155
155
moved {
156
156
from = google_api_gateway_gateway. gateway
157
- to = module. gateway . google_api_gateway_gateway . gateway
157
+ to = module. gateway . google_api_gateway_gateway . gateway
158
158
}
You can’t perform that action at this time.
0 commit comments