Giter Club home page Giter Club logo

terraform's Introduction

Infrastructure as Code with Terraform

To install Terraform we did the following:

Step 1

Download Terraform. Windows | Mac | Site

Step 2

Unzip the folder, place it somewhere for example a folder inside Users called Terraform then copy that directory location.

C:\Users\<user>\VirtualMachines\Terraform

TerraformSetUp

Step 3

  1. Now navigate to your environment variables if you are on Windows. (search in start menu)
  2. Inside that select the Advanced tab and select the environmental variables.. option at the bottom.
  3. Inside there in the User Variables double click Path variables and then in the new window click New and add that path you copied into the new variable slot.
  4. To check it has been installed close any/ all bash instances you have running and then reopen one in administrator and type:
# Check if the terraform is installed
terraform --version

Gif Of Terraforming

What is Terraform?

There are 2 sides of IAC

  1. Configuration Management
  2. Orchestration Tool
  • Ansible - Configuration management
  • Terraform - Orchestration
  • Kubernetes - Orchestration is used in containerisation - i.e. Docker, Crio, Rocket.

Terraform?

  1. Orchestration tools to configure out instances and their AWS configurations remotely.
  2. Terraform files are created with .tf extension
  3. Set Environment variables, via Environmental variables and add the ACCESS and SECRET Keys as user variables. Terraform will automatically pick them up.
  4. Make sure you refresh any current instances of Git Bash you have running as the environmental variables will not take effect until you have done that. Find the commands to create the instance below.

Terraform Commands:

terraform init
# Check the steps inside the code
# lists either 'SUCCESS' or 'ERROR'
terraform plan
# This runs after everything has been checked 
# Immplements the code (Deploy the infrastructure)
terraform apply

Resources

terraform's People

Contributors

johnbyrnejames avatar

Watchers

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