forked from pierront/but3-iac
modification iam
This commit is contained in:
@@ -10,13 +10,13 @@ resource "google_service_account" "service_account" {
|
||||
}
|
||||
|
||||
resource "google_service_account_key" "mykey" {
|
||||
service_account_id = google_service_account_key.google_service_account.service_account.name
|
||||
service_account_id = google_service_account_key.service_account.name
|
||||
public_key_type = "TYPE_X509_PEM_FILE"
|
||||
}
|
||||
|
||||
resource "google_project_iam_binding" "custom_service_account" {
|
||||
project = var.project_id
|
||||
role = "roles/view"
|
||||
role = "roles/viewer"
|
||||
|
||||
members = [
|
||||
"serviceAccount:${google_service_account.service_account.email}",
|
||||
@@ -27,6 +27,6 @@ data "google_client_openid_userinfo" "me" {
|
||||
}
|
||||
|
||||
resource "google_os_login_ssh_public_key" "cache" {
|
||||
user = data.google_client_openid_userinfo.me.email
|
||||
user = google_os_login_ssh_public_key.me.email
|
||||
key = file("~/.ssh/id_ed25519")
|
||||
}
|
||||
Reference in New Issue
Block a user