Didn't know what is Terraform? Take a look
For sure you already know what is AWS 😉
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
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"
}
terraform init
Show the plan
terraform plan
Apply plan
terraform apply
Passing variables
terraform plan -var region='eu-west-1'