forked from pierront/but3-iac
module iam erreur
This commit is contained in:
@@ -10,7 +10,7 @@ resource "google_service_account" "service_account" {
|
||||
}
|
||||
|
||||
resource "google_service_account_key" "mykey" {
|
||||
service_account_id = google_service_account.myaccount.name
|
||||
service_account_id = google_service_account.service_account.name
|
||||
public_key_type = "TYPE_X509_PEM_FILE"
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ resource "google_project_iam_binding" "custom_service_account" {
|
||||
role = "roles/view"
|
||||
|
||||
members = [
|
||||
"serviceAccount:${google_service_account.custom_service_account.email}",
|
||||
"serviceAccount:${google_service_account.service_account.email}",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user