terraform
- terraform settings and dependent
providersdata
- data source, requests terraform read from a
given data sourceprovider
- configs for the specific provider
e.g. aws
with specified versionresource
- defines components of the
infrastructurevariable
- defines variablesoutput
- use to connect the terraform projects with
other poarts of your infrastructure or with other terraform
projectslocal
- local variablesDifference of resource and data
data
is read only where resource
cause
terraform to create, update and delete infra objectsinit
- initializes a working directory containing
Terraform configuration files. It is safe to run this command multiple
times.Provisioning Infrastructure
plan
- presents a plan for making changes, dry-run of
apply
apply
- applies the planned changes to each resource
using the relevant infrastructure provider’s APIdestroy
- destroys all of the resources being managed
by the current working directory and workspaceInspecting Infrastructure
graph
- creates a visual representation of a
configuration or a set of planned changes.output
- can get the values for the top-level output
values of a configurationshow
- can generate human-readable versions of a state
file or plan file, or generate machine-readable versions that can be
integrated with other tools.Developing
fmt
- formatvalidate
- validates the configuration files in a
directory, referring only to the configuration and not accessing any
remote services such as remote state, provider APIs, etc.See Also: terraform cli doc