Skip to content

A Terraform Module for how to run Nomad on AWS using Terraform and Packer

License

Notifications You must be signed in to change notification settings

copernicium-112/terraform-aws-nomad-acl

 
 

Repository files navigation

Nomad AWS Module

Terraform Version

This repo contains a set of modules for deploying a Nomad cluster on AWS using Terraform. Nomad is a distributed, highly-available data-center aware scheduler. A Nomad cluster typically includes a small number of server nodes, which are responsible for being part of the consensus protocol, and a larger number of client nodes, which are used for running jobs.

Since the base repository has been archived, this fork has been enhanced with additional features including support for bootstrapping the Nomad cluster with ACL, policy, and token management, node class options to categorize the type of clients available, and more.

Nomad architecture

Features

  • Deploy server nodes for managing jobs and client nodes running jobs
  • Supports colocated clusters and separate clusters
  • Least privilege security group rules for servers
  • Auto scaling and Auto healing
  • Support for bootstrapping the Nomad cluster with ACL, policy, and token management.
  • Node class options to categorize the type of clients available.

Learn

This repo was originally created by Gruntwork and follows the same patterns as the Gruntwork Infrastructure as Code Library, a collection of reusable, battle-tested, production-ready infrastructure code. You can read How to use the Gruntwork Infrastructure as Code Library for an overview of how to use modules maintained by Gruntwork.

Since the base repository has been archived, this fork has been enhanced with additional features including support for bootstrapping the Nomad cluster with ACL, policy and token management, node class options to categorize the type of clients available, and more.

Core concepts

  • Nomad Use Cases: overview of various use cases that Nomad is optimized for.
  • Nomad Guides: official guide on how to configure and setup Nomad clusters as well as how to use Nomad to schedule services on to the workers.
  • Nomad Security: overview of how to secure your Nomad clusters.

Repo organization

  • modules: the main implementation code for this repo, broken down into multiple standalone, orthogonal submodules.
  • examples: This folder contains working examples of how to use the submodules.
  • test: Automated tests for the modules and examples.
  • root: The root folder is an example of how to use the nomad-cluster module module to deploy a Nomad cluster in AWS. The Terraform Registry requires the root of every repo to contain Terraform code, so we've put one of the examples there. This example is great for learning and experimenting, but for production use, please use the underlying modules in the modules folder directly.

Deploy

Non-production deployment (quick start for learning)

If you just want to try this repo out for experimenting and learning, check out the following resources:

  • examples folder: The examples folder contains sample code optimized for learning, experimenting, and testing (but not production usage).

Production deployment

If you want to deploy this repo in production, check out the following resources:

Manage

Day-to-day operations

Major changes

Who created this Module?

These modules were created by Gruntwork, in partnership with HashiCorp, in 2017 and maintained through 2021. They were deprecated in 2022.

Since the base repository has been archived, this fork has been enhanced with additional features including support for bootstrapping the Nomad cluster with ACL, policy and token management, node class options to categorize the type of clients available, and more.

License

Please see LICENSE for details on how the code in this repo is licensed.

Modifications and additional features were added by copernicium-112

Copyright © 2019 Gruntwork, Inc.

About

A Terraform Module for how to run Nomad on AWS using Terraform and Packer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 43.3%
  • Shell 36.7%
  • Go 20.0%