forked from pierront/but3-iac
iam
This commit is contained in:
@@ -16,7 +16,7 @@ resource "google_service_account_key" "mykey" {
|
||||
|
||||
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}"
|
||||
@@ -29,5 +29,5 @@ data "google_client_openid_userinfo" "me" {
|
||||
resource "google_os_login_ssh_public_key" "cache" {
|
||||
user = data.google_client_openid_userinfo.me.email
|
||||
project = var.project_id
|
||||
key = file("~/.ssh/id_ed25519")
|
||||
key = file("~/.ssh/id_ed25519.pub")
|
||||
}
|
||||
Reference in New Issue
Block a user