Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation enhancement for google_compute_project_metadata (Google Provider) #8176

Closed
ghost opened this issue Jan 12, 2021 · 1 comment · Fixed by GoogleCloudPlatform/magic-modules#4442, hashicorp/terraform-provider-google-beta#2916 or #8343

Comments

@ghost
Copy link

ghost commented Jan 12, 2021

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

@ghost
Copy link
Author

ghost commented Mar 1, 2021

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 ghost locked as resolved and limited conversation to collaborators Mar 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.