Using this Terraform module, you can launch your own DCOS cluster.
See variables.tf
for a list of configurable parameters.
To include this module in your Terraform code-base, use the following snippet:
module "dcos" {
source = "github.com/jeanmertz/terraform-dcos"
aws_access_key = "..."
aws_secret_key = "..."
aws_region = "eu-central-1"
ssh_public_key = "ssh-rsa ..."
...
}
Then run terraform get
to retrieve this module.
Any Terraform module can also be used on its own. To do so, follow these instructions:
- clone the repository
- create a
terraform.tfvars
file with all the (required) variables - optionally run
terraform plan -out terraform.plan
- run
terraform apply [terraform.plan]
This module is an implementation of the official "Single Master" AWS Cloud Formation template.
The CF JSON file is included in this repository, to more easily track updates and implement those in the Terraform implementation.