Skip to main content

Posts

Showing posts from February, 2020

Getting started with terraform

Install terraform: brew install terraform Terraform - infrastructure as code. - To build, manage and modify the infrastructure in a safe and repeatable way Why terraform? - to manage environments using configuration language - here it uses HCL - HashiCorp Configuration Language Infrastructure as a code? - Instead of using UI to create resources, we use a file/files to mange infrastructure - Resource: Any piece of infrastructure (Ex: Virtual machine, security group, network interface)' - Provider - AWS, GCP, GitHub, Docker - automates the creation of resources at the time of apply Advantages of IAC: - Easily repeatable - easily readable - operational certainty with "terraform plan" - standardized environment builds - quickly provisioned development environments - disaster recovery provider "aws" {       access_key = "ACCESS_KEY",       secret_key = "SECRET_KEY",       region = "us-east-1" } # specific...