My Digital Garden

Terrafrom CLI

Terraform CLI

A multi-platform command line tool for interacting with Terraform

Useful commands

Login to Terraform Cloud : terraform login

Import existing cloud resources to plan : terraform import -var-file="tfvars.tfvars" <resource name from terraform plan> <Cloud Resource Id>

(NB must have resource defined in local plan)

See also