Git Product home page Git Product logo

xpdays's Introduction

XPDays 2017 Building with Terraform code samples

The presentation could be found here

Sample1. Creating Ubuntu instance using one file

  1. Init the Terrarorm
  2. Starting our first instance
  3. Terraform produce the state file terraform.tfstate

Sample2. Creating ubuntu instance using set of files

  1. AMI selection moved to separate ami.tf
  2. Instance settings parametized by terraform variables
  3. Created variable files: terraform.tfvars, variables.tf
  4. Example for list element selection in vpc_security_group_ids
  5. Example for map element lookup in instance_type
  6. Add metadata variable count

Sample3. Deploy a sample application, using RDS

  1. Build custom image using packer. Build/redeploy workflow
  2. Deploy a sample application using user_data
  3. Create RDS MySQL database, pass db endpoint to application
  4. Adding outputs

Sample4. Using funtions and count hints

  1. Moving deployment script into temlplate provider
  2. Using length() function to get size and create multiple resources
  3. Add IAM profile for instance

Sample5. Scaling our applications, adding scaling policies

  1. Creating launch configuration, autoscaling grops
  2. Building module
  3. Dealing with LoadBalancers and Certificates

AppendixA. Upgrading applications environment

  1. Blue/Green deployment
  2. Cannary upgrade

xpdays's People

Contributors

voatsap avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.