Commands

Deployment

Download the latest modules and plugins.

terraform init -upgrade

Check that the configuration will apply the expected changes.

terraform plan

Apply the new configuration.

terraform apply -var-file=vars/${terraform workspace show}.tfvars

Termination

To destroy the cluster when finished.

terraform destroy -auto-approve -force

Alias

Use the following alias command to all the use of the tf command shortname rather than terraform command.

alias tf='terraform'

For example:

tf init -upgrade