You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is about the docs for the Google Terraform provider. I was wondering if you'd be willing to add more detailed documentation about how to set ssh keys inside of a google project using terraform. Currently, you can add a public ssh key into the project-wide metadata of a GCP project using the following code:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked as resolved and limited conversation to collaborators
Mar 1, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This issue was originally opened by @watcher00090 as hashicorp/terraform#27469. It was migrated here as a result of the provider split. The original body of the issue is below.
Proposal
This is about the docs for the Google Terraform provider. I was wondering if you'd be willing to add more detailed documentation about how to set ssh keys inside of a google project using terraform. Currently, you can add a public ssh key into the project-wide metadata of a GCP project using the following code:
resource "google_compute_project_metadata" "my_ssh_key" {
metadata = {
ssh-keys = <<EOF
ubuntu-user:ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAzYjBY10oK9lG4H8+sWMxe5eFXMe/fxNQEbkFiAHzmIo0dE0UAtlMb6W9t68m4CSjQaVyPFeLhA4qZRgyUxPtB3tXhwaRkBqcxrDNmuzPa0rJ11HNCnUPKk3+OwiAT5rF3AxHBW0vdHpeLtw2gJsK6VMA31wP4l7spBCMcmJGUMsdILJwBGh7b9MpZl9IIDpMaDXVcXi4Ho+kl9D/5T9fxE3zHgj0Y6JzgVCN0yH3XHjnfvU3+vHdlQ8Lkg4rY/nh5jkwB5JFVrXkmMr568K1UwbaVcBUf2Wao1EeJzqNvqJQ/y5ec2UKa/D3v52MJ7N2eyLmb3tjSnzFwvCiV/eF5Q== ubuntu-user
EOF
}
project = var.gcp_project
}
However, the docs don't mention anything about the ssh-keys argument in the metadata argument of this resource, and in my opinion, they should.
Thank you!
James
The text was updated successfully, but these errors were encountered: