• Introduction
  • System Preferences
  • Xcode
  • Homebrew
    • Usage
    • Cask
  • Terminal
    • Zsh
    • tree
    • fzf
    • ack
  • Git
    • Git Ignore
  • Bash Completion
  • Vim
  • VSC
  • Python
    • Pip
    • Virtualenv
    • Numpy-Scipy
    • IPython
  • MySQL
  • CPlusPlus
  • Java
  • Scala
  • Ruby
    • RubyGems
  • Typescript & Node.js
  • Go
  • Docker
    • Useful Commands
    • Tips and Tricks
  • Kubernetes
  • Terraform
  • LaTeX
  • Other Apps
  • Security
  • Published with GitBook

Terraform

Terraform

Installation

Install locally and then setup for your peferred cloud (e.g. AWS).

brew install terraform

Usage

Configure the provider you need (e.g. AWS).

Initialize the repository

terraform init

Apply changes

terraform apply

Change Infrastructure: https://learn.hashicorp.com/terraform/getting-started/change

Destroy Infrastructure: https://learn.hashicorp.com/terraform/getting-started/destroy

terraform destroy

Dependencies between components: https://learn.hashicorp.com/terraform/getting-started/dependencies

Input Variables: https://learn.hashicorp.com/terraform/getting-started/variables

Output Variables: https://learn.hashicorp.com/terraform/getting-started/outputs

Store State remotely (s3):

  • https://learn.hashicorp.com/terraform/getting-started/remote
  • https://medium.com/@jessgreb01/how-to-terraform-locking-state-in-s3-2dc9a5665cb6

Developer: https://learn.hashicorp.com/terraform/?track=development#development Operations: https://learn.hashicorp.com/terraform/?track=operations#operations

results matching ""

    No results matching ""