Infrastructure as Code.
- Initialize Terraform's "backend"
- Downloads the required Terraform plugin for working with the 'Infrastructure Provider'
terraform init
Code up the infrastructure in a "Terraform Configuration" file (format in yml - YAML).
Then apply the changes:
terraform apply -var 'access_key=[YOUR AWS ACCESS KEY]' -var 'secret_key=[YOUR AWS SECRET KEY]'
Run an "Execution Plan" to check the changes to be applied before actually running the apply. Allows you to obtain useful information about the changes you are about to make.
terraform plan -var 'access_key=[YOUR AWS ACCESS KEY]' -var 'secret_key=[YOUR AWS SECRET KEY]'
Other useful commands:
terraform graph
terraform show