Skip to content

Instantly share code, notes, and snippets.

@yogesh174
Created June 5, 2021 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogesh174/a22cddcdeee156dc6dcd8b6bfa491a50 to your computer and use it in GitHub Desktop.
Save yogesh174/a22cddcdeee156dc6dcd8b6bfa491a50 to your computer and use it in GitHub Desktop.
Multi-cloud K8s cluster with Terraform and Ansible
#############################################
######## 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