This module create a typical bootstrap instance for DC/OS
module "dcos-bootstrap-instance" {
source = "dcos-terraform/bootstrap/aws"
version = "~> 0.2.0"
cluster_name = "production"
subnet_ids = ["subnet-12345678"]
security_group_ids = ["sg-12345678"]
aws_key_name = "my-ssh-key"
}| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| aws_key_name | Specify the aws ssh key to use. We assume its already loaded in your SSH agent. Set ssh_public_key_file to empty string | string | n/a | yes |
| aws_security_group_ids | Firewall IDs to use for these instances | list | n/a | yes |
| aws_subnet_ids | Subnets to spawn the instances in. The module tries to distribute the instances | list | n/a | yes |
| cluster_name | Name of the DC/OS cluster | string | n/a | yes |
| aws_ami | AMI that will be used for the instances instead of the Mesosphere chosen default images. Custom AMIs must fulfill the Mesosphere DC/OS system-requirements: See https://docs.mesosphere.com/1.12/installing/production/system-requirements/ | string | "" |
no |
| aws_associate_public_ip_address | Associate a public IP address with the instances | string | "true" |
no |
| aws_iam_instance_profile | Instance profile to be used for these instances | string | "" |
no |
| aws_instance_type | Instance type | string | "t2.medium" |
no |
| aws_root_volume_size | Root volume size in GB | string | "80" |
no |
| aws_root_volume_type | Root volume type | string | "standard" |
no |
| dcos_instance_os | Operating system to use. Instead of using your own AMI you could use a provided OS. | string | "centos_7.4" |
no |
| hostname_format | Format the hostname inputs are index+1, region, cluster_name | string | "%[3]s-bootstrap%[1]d-%[2]s" |
no |
| name_prefix | Name Prefix | string | "" |
no |
| num_bootstrap | Specify the amount of bootstrap. You should have at most 1 | string | "1" |
no |
| tags | Add custom tags to all resources | map | <map> |
no |
| user_data | User data to be used on these instances (cloud-init) | string | "" |
no |
| Name | Description |
|---|---|
| instance | List of instances IDs created by this module |
| os_user | The OS user to be used |
| private_ip | List of private ip addresses created by this module |
| public_ip | List of public ip addresses created by this module |