compute-engine-instance

Eimert/compute-engine-instance/google

Terraform Module HCL GOOGLE

terraform google cloud VMs

Install
module "compute-engine-instance" {
source = "Eimert/compute-engine-instance/google"
version = "0.0.7"
}
plain text: /constructs/tfmod-eimert-compute-engine-instance-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-google-compute-engine-instance Create virtual machines on Google Cloud. With DNS A record for easy access. Published in the Terraform registry. Usage example: Create VMs with public IP addresses and DNS A record alias. Machine type can be changed without destroying the boot disk. 1. Create a new directory for this terraform configuration 2. Create a main.tf, for example: ``ruby Configure the Google Cloud provider provider "google" { credentials = "${file("king-of-my-google-cloud-castle.json")}" project = "smashing-dash-1992" } google_dns_managed_zone resource is required. If not used, values can be left as-is. resource "google_dns_managed_zone" "managed_zone" { # descriptive name for dns zone name = "cloud-zone" # requires last dot. Ex.: prod.example.com. dns_name = "cloud.eimert

Inputs (19)
NameTypeDescriptionDefault
dns_zone_nameanyThe DNS zone that is pointing to Google' nameservers (if any). A.k.a. Google' DN required
dns_managed_zone_name_indicatoranyDescriptive name for dns_zone_name. See README.md with example for creating reso required
public_key_pathanyOnly private-key auth is enabled by default. Use `ssh-keygen -t rsa` to generate"~/.ssh/id_rsa.pub"
zoneanyGC zone"europe-west4-c"
amountanyNumber of VMs"1"
disk_destroy_local_exec_command_or_failany":"
usernameanyusername of user account to be created"google"
dns_record_nameanyDNS record type == A. For example: 'tower-dev' will become tower-dev.cloud.examp"tower-dev"
name_prefixanyhostname format: name_prefix-amount"vm"
user_dataanyVM description."Managed by terraform plan https://githu
disk_create_local_exec_command_or_failany":"
disk_create_local_exec_command_and_continueany":"
disk_destroy_local_exec_command_and_continueany":"
regionanyGC region"europe-west4"
machine_typeanyList of VM sizes: https://github.com/Eimert/terraform-google-compute-engine-inst"n1-standard-2"
disk_typeanypd-standard or pd-ssd"pd-standard"
disk_imageany[Available OS images/templates](https://cloud.google.com/compute/docs/images)"centos-cloud/centos-7"
disk_sizeanyPrimary disk' size in GB"20"
automatic_restartanyAllow google cloud to restart VM for patching (recommended)."true"
Outputs (2)
zones_available — Output gc zones having free space.
addresses — VM IP addresses.
Resources (4)
google_compute_addressgoogle_compute_diskgoogle_compute_instancegoogle_dns_record_set
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.7
Cloud GOOGLE
★ Stars5
Forks10
Total downloads5.6k
Inputs19
Outputs2
Resources4
LicenseGPL-3.0
NamespaceEimert
Updated