vm_instance
airasia/vm_instance/google
Terraform module for a Compute Engine VM Instance in GCP
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_
| Name | Type | Description | Default |
|---|---|---|---|
| name_suffix | string | An arbitrary suffix that will be added to the end of the resource name(s). For e | required |
| network_tags | list(string) | List of network tags for the VM instance. These tags are used for setting up fir | required |
| boot_disk_image | string | The source image to build the VM's boot disk from. Can be specified by the image | required |
| instance_name | string | A name to identify the VM instance. | required |
| vpc_subnetwork | string | A reference (self link) to the VPC subnet to host the VM instance in. | required |
| sa_name | string | An arbitrary name to identify the ServiceAccount that will be generated & attach | "" |
| login_user_groups | list(string) | List of usergroup emails that maybe allowed access to login to the VM instance. | [] |
| source_external_ip | string | An existing external IP to be attached to the VM instance. VM will become public | "" |
| allow_login | bool | Whether the "OS Login" feature will be allowed in the VM instance. CoreOS instan | false |
| boot_disk_size | number | The size of the boot disk in GigaBytes. Must be at least the size of the boot di | 10 |
| boot_disk_type | string | The GCE disk type. May be set to "pd-standard", "pd-balanced" or "pd-ssd". | "pd-standard" |
| sa_roles | list(string) | IAM roles to be granted to the ServiceAccount which is generated & attached to t | [] |
| login_service_accounts | list(string) | List of ServiceAccount emails that maybe allowed access to login to the VM insta | [] |
| zone | string | The GCloud zone-letter to launch the VM instance in. Options are "a" or "b" or " | "a" |
| external_ip_name | string | An arbitrary name to identify the External IP that will be generated & attached | "" |
| fw_allowed_cidrs | list(string) | List of IP CIDRs to be allowed by the VM firewall rules for incoming traffic. | [] |
| sa_email | string | Email address of another ServiceAccount that will be attached to the VM instance | "" |
| login_admin_groups | list(string) | List of usergroup emails that maybe allowed root (superuser) (sudo) access to th | [] |
| fw_allowed_ports | list(string) | List of ports to be opened by the VM firewall rules for incoming traffic. | [] |
| machine_type | string | The type of VM instance for each nodes. See https://cloud.google.com/compute/doc | "f1-micro" |
| create_external_ip | bool | Whether to create a new external IP to be attached to the VM instance. VM will b | false |
| sa_description | string | An arbitrary description for the ServiceAccount that will be generated & attache | "Manages permissions available to the VM |
| allow_stopping_for_update | bool | Allows Terraform to stop the VM instance to update its properties. | true |
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 geself_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: 4567719474035761998instance_name — The generated name of the GCloud VM Instance. Example: myubuntu2010-vm-tfa2c4