instance

dcos-terraform/instance/gcp

Terraform Module HCL GCP
Install
module "instance" {
source = "dcos-terraform/instance/gcp"
version = "0.3.0"
}
plain text: /constructs/tfmod-dcos-terraform-instance-gcp/install.txt
⭐ Source on GitHub 📦 Registry page
README

![Build Status](https://jenkins-terraform.mesosphere.com/service/dcos-terraform-jenkins/job/dcos-terraform/job/terraform-gcp-instance/job/master/) 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

Inputs (21)
NameTypeDescriptionDefault
instance_subnetwork_namestringInstance Subnetwork Name required
public_ssh_keystringSSH Public Key required
num_instancesstringHow many instances should be created required
zone_listlist(string)Element by zone list required
disk_typestringDisk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or required
user_datastringUser data to be used on these instances (cloud-init) required
dcos_instance_osstringOperating system to use. Instead of using your own AMI you could use a provided required
imagestringSource image to boot from required
disk_sizestringDisk Size in GB required
cluster_namestringName of the DC/OS cluster required
machine_typestringInstance Type required
ssh_userstringSSH User required
allow_stopping_for_updatestringIf true, allows Terraform to stop the instance to update its properties"true"
ssh_private_key_filenamestringPath to the SSH private key"/dev/null"
scheduling_preemptiblestringDeploy instance with preemptible scheduling. (bool)false
guest_accelerator_typestringType of guest accelerator"nvidia-tesla-k80"
name_prefixstringName Prefix""
tagslist(string)Add custom tags to all resources[]
labelsmap(string)Add custom labels to all resources{}
hostname_formatstringFormat the hostname inputs are index+1, region, cluster_name"%[3]s-instance%[1]d-%[2]s"
guest_accelerator_countstringCount of guest accelerator type0
Outputs (18)
dcos_instance_os — Operating system to use. Instead of using your own AMI you could use a provided OS.
image — Source image to boot from
disk_size — Disk Size in GB
ssh_user — SSH User
num_instances — How many instances should be created
name_prefix — Name Prefix
machine_type — Instance Type
allow_stopping_for_update — If true, allows Terraform to stop the instance to update its properties
public_ips — List of public ip addresses created by this module
instance_subnetwork_name — Instance Subnetwork Name
public_ssh_key — SSH Public Key
private_ips — List of private ip addresses created by this module
prereq_id — Prereq id used for dependency
zone_list — Element by zone list
disk_type — Disk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or 'pd-standard'. (opt
user_data — User data to be used on these instances (cloud-init)
instances_self_link — List of instance self links
scheduling_preemptible — Deploy instance with preemptible scheduling. (bool)
Resources (1)
google_compute_instance
Details
FrameworkTerraform Module
LanguageHCL
Version0.3.0
Cloud GCP
★ Stars0
Forks2
Total downloads13.2k
Inputs21
Outputs18
Resources1
LicenseApache-2.0
Namespacedcos-terraform
Updated