Giter Site home page Giter Site logo

mjuuso / provisioning_example Goto Github PK

View Code? Open in Web Editor NEW
24.0 3.0 24.0 1.89 MB

Provision a simple environment in AWS using Terraform and Chef

Home Page: http://miirojuuso.com

Ruby 16.23% HTML 2.64% Shell 17.06% HCL 61.52% Go 2.54%
terraform chef provision example jenkinsfile

provisioning_example's Introduction

Provision a simple environment in AWS using Terraform and Chef

This is an example of how to provision a simple environment in AWS using Terraform and Chef.

Once run, you will end up with:

  • a round-robin load balancer node running nginx
  • two application nodes running a simple Golang application located in src/
  • supporting resources in AWS (SSH key pair, Security Groups, VPC, subnets, etc.)

The lightweight wrapper script run.sh will create a SSH key pair and makes sure you have all the prerequisites needed to run the example. The simple Golang application is included pre-built in the Chef cookbook example_app.

To run:

./run.sh <aws_access_key> <aws_secret_key>

To destroy the environment and all resources the run script created, run the following:

terraform destroy -var aws_access_key=<aws_access_key> -var aws_secret_key=<aws_secret_key>

The repository includes a sample Jenkinsfile that can be used to build a Continuous Delivery pipeline for the application.

provisioning_example's People

Contributors

mjuuso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.