diff --git a/terraform/modules/iam/main.tf b/terraform/modules/iam/main.tf index 619ba00..352c3c9 100644 --- a/terraform/modules/iam/main.tf +++ b/terraform/modules/iam/main.tf @@ -14,7 +14,7 @@ resource "google_service_account_key" "mykey" { public_key_type = "TYPE_X509_PEM_FILE" } -resource "google_project_iam_binding" "project" { +resource "google_project_iam_binding" "custom_service_account" { project = var.project_id role = "roles/view" @@ -28,5 +28,6 @@ data "google_client_openid_userinfo" "me" { resource "google_os_login_ssh_public_key" "cache" { user = data.google_client_openid_userinfo.me.email - key = file("~/.ssh/id_ed25519.pub") + project = var.project_id + key = file("~/.ssh/id_ed25519") } \ No newline at end of file