Giter Club home page Giter Club logo

terraform-aws-dcos's Introduction

DC/OS on Amazon Web Services

This module provides a simple way to deploy a DC/OS cluster on AWS. It will deploy its machines and network configuration spread over all availability zones in a specific region.

The main goal of this project is to be modular, while providing an extremely high availability setup. The way this module provides this high availability is the redundancy in its network components. Availability zones should be as isolated as possible in terms of failure.

Getting Started

An example of how this module should be used is provided in the example directory in this project. We'll go through the basic steps to get a cluster up and running.

Prerequisites

  • You should have Terraform installed.
  • You should have a file located at ~/.aws/credentials with your AWS access keys like this:
[default]
aws_access_key_id = MY_ACCESS_KEY_ID
aws_secret_access_key = MY_SECRET_ACCESS_KEY

Running a cluster

First, check the example/variables.tf file and modify the region and cluster_name variables to your likings. The region variable should be a region identifier as defined by Amazon Web Services. The cluster_name variable can contain any string you like. Please note that does not have to be unique as we use a different variable as a unique identifier for the cluster.

Note that there is a public_key variable in the example/variables.tf file. This is a public key that we will use to log into machines in our cluster. For purpose of this setup we'll create a new public/private key pair that we'll use.

So create that public/private key pair.

$ ssh-keygen -t rsa -b 4096 -C "[email protected]"

Remember where you saved the key pair. Now navigate to the example directory initialize the Terraform project.

$ cd example && terraform init

This will pull in terraform-aws-dcos and all its dependencies as modules. The only thing left to do is apply. We'll throw in the contents of our public key in the command. Replace ~/.ssh/yourkey.pub with the location you saved your public key to.

$ terraform apply -var public_key="`cat ~/.ssh/yourkey.pub`"

Confirm that Terraform may apply the changes, and watch it spin up.

Contributing

Contributions are of course welcome. Keep in mind that we have a few aims for this project:

  • Everything that can fail, will fail. Design your features to survive a failure.
  • We've kept the dcos-config.yml file and its rendering outside of the module. This is intentional to be as configurable as possible. All configuration parameters can be found in the DC/OS documentation. If you need anything from within the module to use in your dcos-config.yml, please add the output to the module so you can use it in your rendering.

Users

terraform-aws-dcos's People

Contributors

yp28 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-aws-dcos's Issues

Action Required: Fix WhiteSource Configuration File - .whitesource

There is an error with this repository's WhiteSource configuration file that needs to be fixed. As a precaution, scans will stop until it is resolved.

Errors:

  • "settingsInteritedFrom" attribute provided in Ultimaker/terraform-aws-dcos/.whitesource points to a non-existent repository or branch: 'Ultimaker/whitesource-config@master'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.