variable "gce_ssh_pub_key_file"
Unknown macro: {
type = string
default = "~/.ssh/id_rsa.pub"
}
variable "account_file"
Unknown macro: {
type = string
default = "account.json"
}
variable "project"
Unknown macro: {
type = string
default = "mariadb-maxscale-test"
}
provider "google"
Unknown macro: {
credentials = file(var.account_file)
project = var.project
region = "us-central1"
zone = "us-central1-a"
}
resource "google_compute_instance" "vm_instance" {
name = "my-terraform-instance"
machine_type = "f1-micro"
tags = ["iap"]
boot_disk {
initialize_params
Unknown macro: {
image = "centos-cloud/centos-7"
}
}
network_interface {
network = "default"
access_config {
}
}
metadata = {
ssh-keys = "timofey_turenko_mariadb_com:${file(var.gce_ssh_pub_key_file)}"
enable-oslogin = "FALSE"
}
}
output "ip" {
value = "${google_compute_instance.vm_instance.network_interface.0.access_config.0.nat_ip}"
}