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" {
1919}
2020
2121provider "google-beta" {
22- project = var. project
23- region = var. region
22+ project = var. project
23+ region = var. region
2424}
2525
2626# Get current Google Cloud access token
@@ -36,12 +36,12 @@ provider "docker" {
3636}
3737
3838module "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
4545swagger: "2.0"
4646info:
4747 title: reports_api_config_dev
@@ -148,15 +148,15 @@ module "endpoints" {
148148
149149moved {
150150 from = google_api_gateway_api. api
151- to = module. gateway . google_api_gateway_api . api
151+ to = module. gateway . google_api_gateway_api . api
152152}
153153
154154moved {
155155 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
157157}
158158
159159moved {
160160 from = google_api_gateway_gateway. gateway
161- to = module. gateway . google_api_gateway_gateway . gateway
161+ to = module. gateway . google_api_gateway_gateway . gateway
162162}
Original file line number Diff line number Diff line change 11variable "environment" {
22 description = " The 'Environment' that is being created/deployed. Applied as a suffix to many resources."
33 type = string
4- default = " dev"
4+ default = " dev"
55}
66variable "project" {
77 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" {
5454 }
5555}
5656
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-
6557resource "google_cloud_run_v2_service_iam_member" "variable_service_account_run_invoker" {
6658 project = var. project
6759 location = var. region
@@ -70,14 +62,6 @@ resource "google_cloud_run_v2_service_iam_member" "variable_service_account_run_
7062 member = " serviceAccount:${ var . service_account_email } "
7163}
7264
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-
8165resource "google_cloud_run_v2_service_iam_member" "api_gw_variable_service_account_run_invoker" {
8266 project = var. project
8367 location = var. region
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ provider "google" {
1818}
1919
2020provider "google-beta" {
21- project = var. project
22- region = var. region
21+ project = var. project
22+ region = var. region
2323}
2424
2525
@@ -38,12 +38,12 @@ provider "docker" {
3838
3939
4040module "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
4747swagger: "2.0"
4848info:
4949 title: reports_api_config_prod
@@ -144,15 +144,15 @@ module "endpoints" {
144144
145145moved {
146146 from = google_api_gateway_api. api
147- to = module. gateway . google_api_gateway_api . api
147+ to = module. gateway . google_api_gateway_api . api
148148}
149149
150150moved {
151151 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
153153}
154154
155155moved {
156156 from = google_api_gateway_gateway. gateway
157- to = module. gateway . google_api_gateway_gateway . gateway
157+ to = module. gateway . google_api_gateway_gateway . gateway
158158}
You can’t perform that action at this time.
0 commit comments