Common commands in Terraform


$ terraform help

Common commands:

apply              Builds or changes infrastructure

console            Interactive console for Terraform interpolations

destroy            Destroy Terraform-managed infrastructure

env                Workspace management

fmt                Rewrites config files to canonical format

get                Download and install modules for the configuration

graph              Create a visual graph of Terraform resources

import             Import existing infrastructure into Terraform

init               Initialize a Terraform working directory

output             Read an output from a state file

plan               Generate and show an execution plan

providers          Prints a tree of the providers used in the config

push               Upload this Terraform module to Atlas to run

refresh            Update local state file against real resources

show               Inspect Terraform state or plan

taint              Manually mark a resource for recreation

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.