{"id":19347189,"url":"https://github.com/dcos/terraform-aws-spot-instance","last_synced_at":"2026-02-27T21:08:13.904Z","repository":{"id":68916864,"uuid":"194134645","full_name":"dcos/terraform-aws-spot-instance","owner":"dcos","description":null,"archived":false,"fork":false,"pushed_at":"2019-06-27T17:16:36.000Z","size":37,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"0.1.0","last_synced_at":"2025-11-16T21:05:35.413Z","etag":null,"topics":["dcos","dcos-testing-guild"],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-27T17:11:06.000Z","updated_at":"2024-04-17T00:13:20.000Z","dependencies_parsed_at":"2023-04-30T19:16:31.314Z","dependency_job_id":null,"html_url":"https://github.com/dcos/terraform-aws-spot-instance","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dcos/terraform-aws-spot-instance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcos%2Fterraform-aws-spot-instance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcos%2Fterraform-aws-spot-instance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcos%2Fterraform-aws-spot-instance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcos%2Fterraform-aws-spot-instance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcos","download_url":"https://codeload.github.com/dcos/terraform-aws-spot-instance/tar.gz/refs/heads/0.1.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcos%2Fterraform-aws-spot-instance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29913904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dcos","dcos-testing-guild"],"created_at":"2024-11-10T04:14:43.934Z","updated_at":"2026-02-27T21:08:13.872Z","avatar_url":"https://github.com/dcos.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"AWS Instance\n============\nThis is an module to creates a DC/OS AWS Instance.\n\nIf `ami` variable is not set. This module uses the mesosphere suggested OS\nwhich also includes all prerequisites.\n\nUsing you own AMI\n-----------------\nIf you choose to use your own AMI please make sure the DC/OS related\nprerequisites are met. Take a look at https://docs.mesosphere.com/1.11/installing/ent/custom/system-requirements/install-docker-RHEL/\n\nEXAMPLE\n-------\n\n```hcl\nmodule \"dcos-master-instance\" {\n  source  = \"terraform-dcos/instance/aws\"\n  version = \"~\u003e 0.1.0\"\n\n  cluster_name = \"production\"\n  subnet_ids = [\"subnet-12345678\"]\n  security_group_ids = [\"sg-12345678\"]\n  hostname_format = \"%[3]s-master%[1]d-%[2]s\"\n  ami = \"ami-12345678\"\n\n  extra_volumes = [\n    {\n      size        = \"100\"\n      type        = \"gp2\"\n      iops        = \"3000\"\n      device_name = \"/dev/xvdi\"\n    },\n    {\n      size        = \"1000\"\n      type        = \"\"     # Use AWS default.\n      iops        = \"0\"    # Use AWS default.\n      device_name = \"/dev/xvdj\"\n    }\n  ]\n}\n```\n\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|:----:|:-----:|:-----:|\n| ami | AMI that will be used for the instance | string | - | yes |\n| associate_public_ip_address | Associate a public IP address with the instances | string | `true` | no |\n| cluster_name | Name of the DC/OS cluster | string | - | yes |\n| dcos_instance_os | Operating system to use. Instead of using your own AMI you could use a provided OS. | string | `centos_7.4` | no |\n| extra_volume_name_format | Printf style format for naming the extra volumes. Inputs are cluster_name and instance ID. | string | `extra-volumes-%s-%s` | no |\n| extra_volumes | Extra volumes for each instance | string | `\u003clist\u003e` | no |\n| hostname_format | Format the hostname inputs are index+1, region, cluster_name | string | `%[3]s-instance%[1]d-%[2]s` | no |\n| iam_instance_profile | The instance profile to be used for these instances | string | `` | no |\n| instance_type | Instance Type | string | `m4.large` | no |\n| key_name | The SSH key to use for these instances. | string | - | yes |\n| num | How many instances should be created | string | - | yes |\n| region | region | string | `` | no |\n| root_volume_size | Specify the root volume size | string | `40` | no |\n| root_volume_type | Specify the root volume type. Masters MUST have at least gp2 | string | `gp2` | no |\n| security_group_ids | Firewall IDs to use for these instances | list | - | yes |\n| subnet_ids | List of subnet IDs created in this network | list | - | yes |\n| tags | Add custom tags to all resources | map | `\u003cmap\u003e` | no |\n| user_data | User data to be used on these instances (cloud-init) | string | `` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| instances | List of instance IDs |\n| os_user | The OS user to be used |\n| prereq-id | Returns the ID of the prereq script (if user_data or ami are not used) |\n| private_ips | List of private ip addresses created by this module |\n| public_ips | List of public ip addresses created by this module |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcos%2Fterraform-aws-spot-instance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcos%2Fterraform-aws-spot-instance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcos%2Fterraform-aws-spot-instance/lists"}