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