forked from pierront/but3-iac
encore iam
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user