instance
dcos-terraform/instance/gcp
 DC/OS Instances Creates generic instances for DC/OS nodes Usage ``hcl module "masters" { source = "dcos-terraform/instance/gcp" version = "~> 0.2.0" providers = { google = "google" } cluster_name = "${var.cluster_name}" hostname_format = "${var.hostname_format}" num = "${var.num_masters}" image = "${coalesce(var.image, module.dcos-tested-oses.gcp_image_name)}" user_data = "${var.image == "" ? module.dcos-tested-oses.os-setup : var.gcp_user_data}" machine_type = "${var.machine_type}" instance_subnetwork_name = ["${var.master_subnetwork_name}"] ssh_user = "${var.ssh_user}" public_ssh_key = "${var.public_ssh_key}" zone_list = "${var.zone_list}" dis
| Name | Type | Description | Default |
|---|---|---|---|
| instance_subnetwork_name | string | Instance Subnetwork Name | required |
| public_ssh_key | string | SSH Public Key | required |
| num_instances | string | How many instances should be created | required |
| zone_list | list(string) | Element by zone list | required |
| disk_type | string | Disk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or | required |
| user_data | string | User data to be used on these instances (cloud-init) | required |
| dcos_instance_os | string | Operating system to use. Instead of using your own AMI you could use a provided | required |
| image | string | Source image to boot from | required |
| disk_size | string | Disk Size in GB | required |
| cluster_name | string | Name of the DC/OS cluster | required |
| machine_type | string | Instance Type | required |
| ssh_user | string | SSH User | required |
| allow_stopping_for_update | string | If true, allows Terraform to stop the instance to update its properties | "true" |
| ssh_private_key_filename | string | Path to the SSH private key | "/dev/null" |
| scheduling_preemptible | string | Deploy instance with preemptible scheduling. (bool) | false |
| guest_accelerator_type | string | Type of guest accelerator | "nvidia-tesla-k80" |
| name_prefix | string | Name Prefix | "" |
| tags | list(string) | Add custom tags to all resources | [] |
| labels | map(string) | Add custom labels to all resources | {} |
| hostname_format | string | Format the hostname inputs are index+1, region, cluster_name | "%[3]s-instance%[1]d-%[2]s" |
| guest_accelerator_count | string | Count of guest accelerator type | 0 |
dcos_instance_os — Operating system to use. Instead of using your own AMI you could use a provided OS.image — Source image to boot fromdisk_size — Disk Size in GBssh_user — SSH Usernum_instances — How many instances should be createdname_prefix — Name Prefixmachine_type — Instance Typeallow_stopping_for_update — If true, allows Terraform to stop the instance to update its propertiespublic_ips — List of public ip addresses created by this moduleinstance_subnetwork_name — Instance Subnetwork Namepublic_ssh_key — SSH Public Keyprivate_ips — List of private ip addresses created by this moduleprereq_id — Prereq id used for dependencyzone_list — Element by zone listdisk_type — Disk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or 'pd-standard'. (optuser_data — User data to be used on these instances (cloud-init)instances_self_link — List of instance self linksscheduling_preemptible — Deploy instance with preemptible scheduling. (bool)