GithubHelp home page GithubHelp logo

hotsen / intro-to-terraform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gruntwork-io/intro-to-terraform

0.0 2.0 0.0 5 KB

Sample code for the blog post "An Introduction to Terraform"

Home Page: https://blog.gruntwork.io/an-introduction-to-terraform-f17df9c6d180

License: Other

HCL 100.00%

intro-to-terraform's Introduction

An Introduction to Terraform Sample Code

This repo contains the sample code for the blog post An Introduction to Terraform. It is broken down into two folders:

  • single-web-server: Deploy a single EC2 Instance with a web server that will return "Hello, World" for every request on port 8080.
  • cluster-of-web-servers: Deploy a cluster of EC2 Instances in an Auto Scaling Group (ASG) and an Elastic Load Balancer (ELB). The ELB listens on port 80 and distributes load across the EC2 Instances, each of which runs the same "Hello, World" web server.

Quick start

Note: These examples deploy resources into your AWS account. Although all the resources should fall under the AWS Free Tier, it is not our responsibility if you are charged money for this.

  1. Install Terraform.
  2. Set your AWS credentials as the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
  3. cd into one of the two example folders.
  4. Run terraform plan.
  5. If the plan looks good, run terraform apply.

See An Introduction to Terraform for more information.

License

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

intro-to-terraform's People

Contributors

brikis98 avatar

Watchers

Alexander hoth avatar James Cloos 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.