All Questions
Tagged with terraform google-compute-engine
10
questions
0
votes
0
answers
453
views
SSH Keys not propagating correctly from instance metadata to authorized_keys: missing keys, user discrepancy, and duplicate key
I want to add eight public keys via instance metadata to avoid adding them manually (i.e.: ssh to VMs, pasting the keys to .ssh/authorized_keys, etc.).
I added the keys in Terraform (four distinct ...
0
votes
2
answers
10k
views
terraform apply error alreadyExists on untouched resources
I am starting a new terraform project, following the official guide:
https://learn.hashicorp.com/tutorials/terraform/gke?in=terraform/kubernetes&utm_source=WEBSITE&utm_medium=WEB_IO&...
0
votes
0
answers
489
views
Cannot connect to a Postgres SQL instance from inside a pod within a GKE
I am new to Terraform and Google Cloud.
I am trying to create a K8 cluster where pods inside the cluster could communicate with a Postgres server I have within the same VPC.
However, when I try to ...
3
votes
2
answers
4k
views
Google Cloud Compute Engine persistent disk snapshot schedule not working
i created a VM with terraform on GCP and also a persistent disk separately with the google_compute_disk , google_compute_resource_policy, google_compute_disk_resource_policy_attachment resources to ...
0
votes
2
answers
469
views
google_compute_instance_group Creation Issue
I am trying to create an instance group using the example in the terraform doc at https://www.terraform.io/docs/providers/google/r/compute_instance_group.html .
resource "...
1
vote
2
answers
935
views
Terraform & GCP: How to get inventory of current disks?
My goal is to utilize terraform's "google_compute_snapshot" feature (https://www.terraform.io/docs/providers/google/r/compute_snapshot.html) to schedule daily snapshots for all disks in a project.
...
1
vote
1
answer
2k
views
Control user creation in GCP instances
I have recently started using Google Cloud Plattform with Terraform, for a minor project my company is doing.
A smallish issue is bugging me, but I don't seem to find any relevant documentation about ...
0
votes
1
answer
478
views
Terraform GCE metadata with variables
I'm trying to pass a certificate as a metadata to my project, so every newly created instance would have an access to it. I'm trying to achieve it via terraform resource "...
2
votes
1
answer
4k
views
Terraform ssh error on Google Cloud Instance?
I've been fighting through Terraform Provisioner connection issues with ssh today. So far I've tried what I thought was working previously with this:
provisioner "remote-exec" {
inline = [
...
1
vote
1
answer
3k
views
Using Terraform to create GCE instances, error occuring on attaching secondary disk?
My terraform file looks like this.
resource "google_compute_disk" "sqlserversecondary" {
name = "sql-server-secondary"
type = "pd-ssd"
zone = "us-central1-a"
size = "512"
}
resource "...