The Essential Terraform Cheatsheet

One of the best things about being a digital transformation leader in the cloud space is the humbling experience of working with so many smart, talented, creative, driven, and hard-working engineers. Over the past several years, our team has worked together to go from mostly manual and error prone deployments to fully automated infrastructure deployments with Terraform for all of our applications.

Additionally, we have partnered with our application development teams to extend the app tech stack to include cloud infrastructure code management as part of a shift-left journey to enable teams to more completely manage their apps ecosystem.

As part of these efforts, I have found a lot of the same questions about Terraform commands have come up repeatedly with teams looking for the best way to get started. With a shortage of high-quality and to-the-point cheatsheets for Terraform out there, I thought I would create one for the community.

Note that this cheatsheet is not intended to have every possible command or combination of options (that is what the documentation is for), but rather to provide a list of some of the most commonly used commands.

I hope that the members of our vibrant and ever-growing DevOps community find this helpful. Please let me know if there is anything you would improve and I will publish a new version with aggregated inputs incorporated! Keep coding out there!

3 responses to “The Essential Terraform Cheatsheet”

  1. […] For more information on Terraform commands, check out my Essential Terraform Cheatsheet! […]


  2. Thank you. Suggestion for v2:
    Replace deprecated taint command with -replace: terraform apply -replace=azurerm_linux_virtual_machine.vm

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your 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

%d bloggers like this: