1
0
forked from pierront/but3-iac

encore iam

This commit is contained in:
2025-12-04 10:27:10 +01:00
parent ad464191fe
commit 5746077039
2 changed files with 6 additions and 4 deletions

View File

@@ -40,3 +40,4 @@ module "iam" {
project_id = var.project_id
ssh_public_key_path = "/home/adriendick18/.ssh/id_ed25519.pub"
}

View File

@@ -20,6 +20,7 @@ resource "google_project_iam_binding" "terraform_sa_viewer" {
data "google_client_openid_userinfo" "me" {}
resource "google_os_login_ssh_public_key" "me_ssh_key" {
project = var.project_id
user = data.google_client_openid_userinfo.me.email
key = file(var.ssh_public_key_path)
}