Skip to content

RSginer/terraform-aws-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform AWS Snippets - Infrastructure as Code 💪

Didn't know what is Terraform? Take a look

For sure you already know what is AWS 😉

Install terraform

Download the terraform binary for your platform here Terraform binary file

Unzip and copy the terraform file to /usr/local/bin

Or add your terraform path inside .profile

export PATH = $PATH/your/terraform/path

and then run

source .profile

Configure your credentials

Create a file named provider.tf with the following content

provider "aws" {
  access_key = "YOUR_ACCESS_KEY" 
  secret_key = "YOUR_SECRET_KEY"
  region  = "eu-west-1"
}

Install plugins

terraform init

Scripts

Show the plan

terraform plan

Apply plan

terraform apply

Passing variables

terraform plan -var region='eu-west-1'

About

Terraform AWS snippets - Infrastructure as Code 💪

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages