Skip to content

A best practice baseline Terraform repository containing Terraform scripts with the ability to deploy both compute and networking infrastructure into AWS, Microsoft Azure, Google Compute and Rackspace.

fitsnips/terraform-best-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Best Practice

This repository aims to provide a helpful set of structural guidelines to follow when working with Terraform, as well giving a basic enablement with the tool through a series of simple demos.

What is Terraform? Have a read here!

How can I install Terraform on my machine? Get it here!

What can you learn?

The end state of this Terraform repository will have the ability to deploy compute and networking infrastructure into the following cloud providers:

Networking infrastructure will contain:

  • VPCs
  • Subnets (public & private)
  • Routing Tables
  • NAT Gateways
  • Internet Gateways
  • Security Groups
  • Elastic Load Balancers

Compute infrastructure will contain:

  • EC2 instances (AWS)
  • Azure instances (Microsoft Azure)
  • Google compute instances (Google Cloud)
  • OpenStack compute instances (Rackspace)

Terraform provisioning will contain examples of:

  • Puppet configuration management
  • Chef configuration management
  • Ansible configuration management

When can you learn it?

Terraform code for the above code is to be released incrementally in parts, accompanied by a blog. The releases will be split as follows:

  • Release 1: Directory Structure and Basic Compute in AWS
  • Release 2: Basic Compute in Microsoft Azure, Google Cloud & Rackspace
  • Release 3: Networking Infrastructure in AWS, Microsoft Azure, Google Cloud & Rackspace
  • Release 4: Terraform Provisioning with Puppet, Chef & Ansible

Each release will also be accompanied with a series of demos relating to the new functionality.

## The Commands

These are the commands that will be at the core of every demo contained in this repository:

Before progressing into any demos, it is also very important to understand 'state' in the context of Terraform, how it is fits in and the criticality of state file management.

Directory Structure

Each directory level will have a explanation of how the sub-directories are all structured, what is contained in them and why they should be set out this way.

This is the base of the Terraform repository, inclusive of sub-directories that are named after the cloud providers that you wish to deploy into using Terraform.

About

A best practice baseline Terraform repository containing Terraform scripts with the ability to deploy both compute and networking infrastructure into AWS, Microsoft Azure, Google Compute and Rackspace.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages