Created
June 5, 2021 18:48
-
-
Save yogesh174/a22cddcdeee156dc6dcd8b6bfa491a50 to your computer and use it in GitHub Desktop.
Multi-cloud K8s cluster with Terraform and Ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################# | |
######## Add pub ssh key to instance ######## | |
############################################# | |
resource "google_compute_project_metadata" "my_ssh_key" { | |
metadata = { | |
ssh-keys = <<EOF | |
dev: ${file(var.public_key_path)} | |
EOF | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment