Day 61- Terraform🔥

Day 61- Terraform🔥

·

1 min read

Table of contents

Task 1:

This is the purpose of basic Terraform commands which you'll use often:

  1. Terraform init {terraform init }: This command will scan your .tf files in the folder and install all the required automation things.

  2. Terraform init -upgrade {terraform init -upgrade}: Performs the same function as terraform init but with the additional function of checking for and downloading the latest available versions of the plugins/modules.

  3. Terraform plan {terraform plan}: This command will create an execution plan for terraforming, the things that will be installed, the name, and the properties added.

  4. Terraform apply {terraform apply}: The actual command and automation happen in this command.

  5. Terraform validate {terraform validate }: Validates the configuration files for syntax errors, typos, and other issues without executing any changes. It helps ensure that the configuration is correctly written and structured.

  6. Terraform fmt {terraform fmt}: Formats the Terraform configuration files according to a standard style guide. It rewrites the files in a canonical format, ensuring consistent styling, indentation, and readability.

  7. Terraform destroy {terraform destroy}: Initiates the process of destroying all the resources defined in the Terraform configuration. It tears down the infrastructure created by Terraform, prompting for confirmation before actually removing the resources.


Happy Learning

Thanks For Reading! :)

-SriParthu💝💥