module iam erreur

This commit is contained in:
2025-12-04 09:37:52 +01:00
parent 92da404b95
commit 3c03a87242

View File

@@ -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}",
]
}