Giter Club home page Giter Club logo

aws-terraform-workshop's Introduction

AWS Terraform Workshop

Examples about Infrastructure as Code, using Terraform and AWS

Sample application: Hello From

Infrastructure diagram

Getting Started

Set up your local environment

pip install awscli
  • Configure AWS CLI with your AWS credentials
aws configure
  • Clone this repository
  • (Optional) install and use Landscape

State 1

Features

  • An EC2 instance
  • A security group
  • User data
  • Local tfstate

Concepts ✏️

  • HCL
  • Provider
  • Resource
  • State
  • Init
  • Plan
  • Apply
  • Destroy

State 2

Features

  • Remote backend 😁
  • Variables
  • Outputs

Concepts ✏️

  • Variables
  • Outputs
  • Count
terraform plan -var 'vpc_id=vpc-953f78ee' -var 'app_port=5000' -var 'instance_type=t2.micro' -var 'subnet_id=subnet-b1455dec' -var 'key_name=aws-terraform-workshop'
terraform plan -var 'vpc_id=vpc-953f78ee' -var 'app_port=5000' -var 'instance_type=t2.micro' -var 'subnet_id=subnet-b1455dec' -var 'key_name=aws-terraform-workshop' -var 'instances=2'

State 3

Features

  • A launch configuration
  • An autoscaling group
  • An ELB

This is the definitive infrastructure

Concepts ✏️

  • Variables file
  • Lists
terraform plan -var-file=myvars.tfvars

State 4

Features

  • "Environments"

Concepts ✏️

  • Modules
  • ifs (interpolation)

aws-terraform-workshop's People

Contributors

facevedom avatar

Stargazers

Luis Miguel Mejía Suárez avatar

Watchers

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.