From 135adf5a5cd2ac1e023c39f383a266758201a47d Mon Sep 17 00:00:00 2001 From: Aubert Date: Thu, 4 Dec 2025 10:04:32 +0100 Subject: [PATCH] iam --- terraform/modules/iam/main.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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