vm_instance

airasia/vm_instance/google

Terraform Module HCL GOOGLE

Terraform module for a Compute Engine VM Instance in GCP

Install
module "vm_instance" {
source = "airasia/vm_instance/google"
version = "2.13.1"
}
plain text: /constructs/tfmod-airasia-vm-instance-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform module for a Compute Engine VM Instance in GCP Upgrade guide from v2.6.0 to v2.7.0 First make sure you've planned & applied v2.6.0. Then, upon upgrading from v2.6.0 to v2.7.0, you may (or may not) see a plan that destroys & creates _iam_member resources. It is OK to apply these changes as it only changes the IAM permissions from project-wide accesses to resource-specific accesses. Note that, after you plan & apply these changes, you may (or may not) get a "Provider produced inconsistent result after apply" error. Just re-plan and re-apply and that would resolve the error. Upgrade guide from v2.5.1 to v2.6.0 First make sure you've planned & applied v2.5.1. Then, upon upgrading from v2.5.1 to v2.6.0, you may (or may not) see a plan that destroys & creates an equal number of google_

Inputs (23)
NameTypeDescriptionDefault
name_suffixstringAn arbitrary suffix that will be added to the end of the resource name(s). For e required
network_tagslist(string)List of network tags for the VM instance. These tags are used for setting up fir required
boot_disk_imagestringThe source image to build the VM's boot disk from. Can be specified by the image required
instance_namestringA name to identify the VM instance. required
vpc_subnetworkstringA reference (self link) to the VPC subnet to host the VM instance in. required
sa_namestringAn arbitrary name to identify the ServiceAccount that will be generated & attach""
login_user_groupslist(string)List of usergroup emails that maybe allowed access to login to the VM instance. []
source_external_ipstringAn existing external IP to be attached to the VM instance. VM will become public""
allow_loginboolWhether the "OS Login" feature will be allowed in the VM instance. CoreOS instanfalse
boot_disk_sizenumberThe size of the boot disk in GigaBytes. Must be at least the size of the boot di10
boot_disk_typestringThe GCE disk type. May be set to "pd-standard", "pd-balanced" or "pd-ssd"."pd-standard"
sa_roleslist(string)IAM roles to be granted to the ServiceAccount which is generated & attached to t[]
login_service_accountslist(string)List of ServiceAccount emails that maybe allowed access to login to the VM insta[]
zonestringThe GCloud zone-letter to launch the VM instance in. Options are "a" or "b" or ""a"
external_ip_namestringAn arbitrary name to identify the External IP that will be generated & attached ""
fw_allowed_cidrslist(string)List of IP CIDRs to be allowed by the VM firewall rules for incoming traffic.[]
sa_emailstringEmail address of another ServiceAccount that will be attached to the VM instance""
login_admin_groupslist(string)List of usergroup emails that maybe allowed root (superuser) (sudo) access to th[]
fw_allowed_portslist(string)List of ports to be opened by the VM firewall rules for incoming traffic.[]
machine_typestringThe type of VM instance for each nodes. See https://cloud.google.com/compute/doc"f1-micro"
create_external_ipboolWhether to create a new external IP to be attached to the VM instance. VM will bfalse
sa_descriptionstringAn arbitrary description for the ServiceAccount that will be generated & attache"Manages permissions available to the VM
allow_stopping_for_updateboolAllows Terraform to stop the VM instance to update its properties.true
Outputs (8)
zone — The zone in which the VM instance was launched.
external_ip — The external IP address attached to the VM instance.
sa_email — Email address of the ServiceAccount that is attached to the VM instance.
sa_roles — All roles (except sensitive roles filtered by the module) that are attached to the ServiceAccount ge
self_link — The URI of the created resource.
id — An identifier for the resource with format projects/{{project}}/zones/{{zone}}/instances/{{name}}
instance_id — The server-assigned unique identifier of this instance. Example: 4567719474035761998
instance_name — The generated name of the GCloud VM Instance. Example: myubuntu2010-vm-tfa2c4
Resources (7)
google_compute_addressgoogle_compute_firewallgoogle_compute_instancegoogle_compute_instance_iam_membergoogle_project_iam_membergoogle_project_servicegoogle_service_account_iam_member
Details
FrameworkTerraform Module
LanguageHCL
Version2.13.1
Cloud GOOGLE
★ Stars2
Forks8
Total downloads71.7k
Inputs23
Outputs8
Resources7
LicenseGPL-3.0
Namespaceairasia
Updated