- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-25-2019 11:29 AM
Trying to spin up a firewall in the GCP environment but unable to get ssh key to work. Tried different keys including puttygen generated key. Also tried project metadata and instance metadata
Ex:
resource "google_compute_instance" "fw-region" {
count = 2
name = "fw-region-${count.index +1 }"
can_ip_forward = true
metadata = {
ssh-keys = "admin:ssh-rsa ZZZB3NzaC1yc2EAAAABJQAAAQEAhY75tZnIVX8Stub/Zd7B6qApkgbxYFjMfxBhX+qgHpVNzD8qLJ2CWuWkQu4uA8FbmTW1L1Ozr0PFoYzJDtEDROzRVmludG57kLd9/zKmm9WI+8JvamRBrCtXwB1fPmiM03gxrh8x3gOwaWS6P6I9oD825tXXC5jT+1w3TpMcyjiOHec8AKKMAAA5jVOy2MHGSepds0FQrw4l7J47ZvDq5uy+FaclblB3Mm/Xw== admin"
}
}
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!