-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from artefactory/fix/project_name_sa
Fix app engine service account name
- Loading branch information
Showing
3 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,14 +43,14 @@ resource "google_project_iam_member" "cloudsql" { | |
depends_on = [google_app_engine_application.app] | ||
project = data.google_project.project.project_id | ||
role = "roles/cloudsql.client" | ||
member = format("serviceAccount:%[email protected]", data.google_project.project.name) | ||
member = format("serviceAccount:%[email protected]", data.google_project.project.project_id) | ||
} | ||
|
||
resource "google_project_iam_member" "secret" { | ||
depends_on = [google_app_engine_application.app] | ||
project = data.google_project.project.project_id | ||
role = "roles/secretmanager.secretAccessor" | ||
member = format("serviceAccount:%[email protected]", data.google_project.project.name) | ||
member = format("serviceAccount:%[email protected]", data.google_project.project.project_id) | ||
} | ||
|
||
resource "google_project_iam_member" "gcs" { | ||
|
@@ -64,14 +64,14 @@ resource "google_project_iam_member" "gae_gcs" { | |
depends_on = [google_app_engine_application.app] | ||
project = data.google_project.project.project_id | ||
role = "roles/storage.objectViewer" | ||
member = format("serviceAccount:%[email protected]", data.google_project.project.name) | ||
member = format("serviceAccount:%[email protected]", data.google_project.project.project_id) | ||
} | ||
|
||
resource "google_project_iam_member" "gae_api" { | ||
depends_on = [google_app_engine_application.app] | ||
project = data.google_project.project.project_id | ||
role = "roles/compute.networkUser" | ||
member = format("serviceAccount:%[email protected]", data.google_project.project.name) | ||
member = format("serviceAccount:%[email protected]", data.google_project.project.project_id) | ||
} | ||
|
||
resource "google_app_engine_flexible_app_version" "myapp_v1" { | ||
|
@@ -130,8 +130,8 @@ resource "google_iap_client" "project_client" { | |
brand = google_iap_brand.project_brand.name | ||
} | ||
resource "google_iap_app_engine_service_iam_binding" "member" { | ||
project = data.google_project.project.name | ||
app_id = data.google_project.project.name | ||
project = data.google_project.project.project_id | ||
app_id = data.google_project.project.project_id | ||
service = google_app_engine_flexible_app_version.myapp_v1.service | ||
role = "roles/iap.httpsResourceAccessor" | ||
members = var.web_app_users | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export TF_VAR_project_id=two-click-mlflow | ||
export TF_VAR_backend_bucket=tfstate-mlflow-atf-two | ||
export TF_VAR_consent_screen_support_email=[email protected] | ||
export TF_VAR_web_app_users='["user:[email protected]", "user:[email protected]"]' | ||
export TF_VAR_network_name=default | ||
export TF_VAR_project_id= | ||
export TF_VAR_backend_bucket= | ||
export TF_VAR_consent_screen_support_email= | ||
export TF_VAR_web_app_users= | ||
export TF_VAR_network_name= |