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