Terraform Ref

Terraform Run CMD

Initialize Commend

  • terraform init

Show Tf Plan

  • terraform plan

Format and validate the configuration

We recommend using consistent formatting in all of your configuration files. The terraform fmt command automatically updates configurations in the current directory for readability and consistency.

  • terraform fmt

You can also make sure your configuration is syntactically valid and internally consistent by using the terraform validate command.

  • terraform validate

Inspect the current state using

  • terraform show

Create infrastructure

  • terraform apply

Delete infrastructure

  • terraform destroy

Folder wise IAS

Docker

  • Deploy one container

AWS

  • Deploy a EC2