DEV Community

Cover image for Terraform Fundamentals
Ibrahim S
Ibrahim S

Posted on

Terraform Fundamentals

Terraform Workflow:

Init: This step initializes a working directory containing the Terraform configuration files. This is the first step you should run after writing a new Terraform configuration.

Validate: This step validates the Terraform configuration files in the working directory to ensure they are syntactically valid and internally consistent.

Plan: This step creates an execution plan that shows what Terraform will do to your infrastructure if you apply the configuration.

Apply: This step applies the changes required to reach the desired state of the configuration. By default, the application scans the current directory for the configuration and applies the changes appropriately. It will ask for confirmation before destroying it.

Destroy: This step destroys the Terraform-managed infrastructure. I hope this helps! Let me know if you have any other questions about Terraform.

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay