Giter Site home page Giter Site logo

deltron's Introduction

Deltron is a blueprint for creating your own Chef Automate cluster in AWS, using Terraform.

Quickstart

  1. git clone the repo.
  2. Remove *.tfvars and *.tfstate from your .gitignore.
  3. Execute setup.sh from the root of the directory
  4. Create a terraform.tfvars file and include your variables there. See the included example.tfvars.
  5. Create a secrets.tfvars file and include any keys and secrets there. See the included example_secrets.tfvars.
  6. Run terraform plan -var-file secrets.tfvars.
  7. Run terraform apply -var-file secrets.tfvars.
  8. Create a new private repo and commit your terraform.tfvars, terraform.tfstate, and any changes to your own repository.

Variables in terraform.tfvars

  • aws_default_region - The region name where your aws instances will live. Choose from one of the following:

    us-west-1

    us-west-2

    us-east-1

    eu-west-1

    eu-central-1

    ap-southeast-1

    ap-southeast-2

    ap-northeast-1

    ap-northeast-2

  • aws_instance_type - The size and type of machines you will spin up for all Chef Automate instances.

  • automate_instance_id - A unique identifier added to the names and tags of the machines to make finding them easier.

VPCs, Security Groups, and Route Tables

This project assumes that your security team has already created VPCs, security_groups, and route tables where applications can live in your organization. You should question your security team to understand their operating model, architecture, and maintenance of VPCs, Security Groups, and Route Tables. If this is not the case and your organization permits dynamic allocation of these resources, then you should modify the main.tf file to use terraform resources to maintain these.

  • automate_vpc - The VPC under which all aws resources you spin up will be created.
  • automate_subnet - The Subnet under which all aws resource will be created.
  • automate_route_table_id - The Route Table under which all aws resources will be created.

Builder keys

You no longer need to provide builder keys.

Setup.sh

Because of how Terraform's file interpolation works, files are read pre-execution. To work around this, we generate a validator key for the Delivery user in this script. If we can find a way to do this in the TF plan in the future, we should do so.

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.