Terraform is a IaC tool to manage infrastructure between many common Cloud Providers, such as Azure, AWS, Google Cloud Platfform and others.
- Create AWS resources
- Destroy AWS resources
- Environment parity
- Version Controlling the Infrastructure
- Terraform CLI
- AWS User Account with Admin Credentials (Programatic Access)
To use Terraform, make sure you have the CLI installed, or prefferable, the TFEnv tool.
Document | Link |
---|---|
TERRAFORM DOCUMENTATION | https://www.terraform.io/downloads.html |
TFEENV DOCUMENTATION | https://github.com/tfutils/tfenv |
Always remenber to
git pull
to keep your local repository updated to the AWS account!
After installing the CLI, run:
terraform init
source ./loadenv
terraform plan -out=$(tfplandir)
terraform apply $tflastplan -auto-approve -backend=true -backend-config=bucket=$(tfbucket)
MIT