Commit 800129b7 authored by Lakshmi Chaitanya's avatar Lakshmi Chaitanya

First commit

parents
File added
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
{"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"my-vm","Source":"./modules","Dir":"modules"}]}
\ No newline at end of file
variable "vm-name"{
type = string
default = "ascend-terraform"
}
resource "random_string" "vm-name" {
length = 12
upper = false
number = false
lower = true
special = false
}
\ No newline at end of file
resource "google_compute_instance" "default" {
name = "vmc-${random_string.vm-name.result}"
machine_type = "e2-medium"
zone = "us-central1-a"
project = "lakshmi-342921"
tags = ["foo","bar"]
allow_stopping_for_update = true
boot_disk {
initialize_params {
image = "debian-cloud/debian-9"
}
}
network_interface {
network = "default"
access_config {
// Ephemeral public IP
}
}
}
{
"version": 4,
"terraform_version": "1.1.6",
"serial": 1,
"lineage": "00fde395-0291-8e8d-7e6f-5a6d591444c7",
"outputs": {},
"resources": []
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment