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

@@ -36,7 +36,8 @@ module "compute" {
} }
module "iam" { module "iam" {
source = "../../modules/iam" source = "../../modules/iam"
project_id = var.project_id project_id = var.project_id
ssh_public_key_path = "/home/adriendick18/.ssh/id_ed25519.pub" 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" {} data "google_client_openid_userinfo" "me" {}
resource "google_os_login_ssh_public_key" "me_ssh_key" { resource "google_os_login_ssh_public_key" "me_ssh_key" {
user = data.google_client_openid_userinfo.me.email project = var.project_id
key = file(var.ssh_public_key_path) user = data.google_client_openid_userinfo.me.email
key = file(var.ssh_public_key_path)
} }