forked from pierront/but3-iac
encore iam
This commit is contained in:
@@ -40,3 +40,4 @@ module "iam" {
|
||||
project_id = var.project_id
|
||||
ssh_public_key_path = "/home/adriendick18/.ssh/id_ed25519.pub"
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user