Giter VIP home page Giter VIP logo

terraform-wth's Introduction

What The Hack: Infrastructure As Code with Terraform

Introduction

DevOps is a journey not a destination. Implementing Infrastructure-as-Code is one of the first steps you will need to take!

When implementing an application environment in the cloud, it is important to have a repeatable way to deploy the underlying infrastructure components as well as your software into the target environment. This includes resources such as:

  • Virtual Networks, Network Security Groups (Firewalls), Public IPs, Virtual Machines, Storage (Disks)
  • PaaS Services (Azure Container Apps, Azure SQL, App Service, etc)
  • Configuration Management (installing & configuring software on VMs)

The best way to make deployments repeatable is to define them with code, hence the term "Infrastructure as Code" (aka IAC). There are multiple technologies that enable you to achieve this. Some of these include:

  • ARM Templates
  • Bicep Templates
  • HashiCorp's Terraform
  • Ansible, Chef, Puppet, Salt Stack, and others

This hack is focused on using Terraform to implement your IaC.

Learning Objectives

This hack will help you learn:

  • How Terraform can be used to deploy Azure infrastructure

The challenges build upon each other incrementally. You will start by creating basic Terraform manifests to get you familiar with the tools & syntax. Then you extend your manifests incrementally to deploy multiple infrastructure resources to Azure.

Challenges

Prerequisites

You will want to prepare your machine with the following to help complete the Challenges for this hack:

Repository Contents

  • ../Student
    • Terraform challenges
  • ../Student/Resources
    • Shell scripts needed to complete the challenges

terraform-wth's People

Contributors

larryclaman avatar hbendana avatar richross avatar

Stargazers

ARSHAD AZEEM avatar

Watchers

Stephen Jeffries avatar PJ Johnson avatar

terraform-wth's Issues

Challenge 6 - include the move information

For Challenge 6, student move resources from 1 large file into modules. Refactoring the code in this way leads to destroying and creating items already in existence even though nothing has changed for the definition. Include links to the move command documentation.

generate sparse_checkout script to create the student repos.

The main repo includes both coaches and student content. To effectively use this for the hackathon, only the student code must be shared. There are manual ways to delete the coaches content and then post to a new repo. Git includes the capability to standardize this release of content with a function called sparse checkout.

Update the Challenge 6 readme

This readme includes language specific to Bicep. This language was removed and replaced with Terraform specific directions.

Updates to Chal 5 & 6

This needs some more information, but based on a note in debrief that there are changes captured and ready to be included in the code base. Assigning to Harvey as this was his comment.

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.