Terraform Commands
This command will initialize the working directory containing Terraform configuration files and install any required plugins.
This command lets you preview the actions Terraform would take to modify your infrastructure or save a speculative plan which you can apply later.
This command executes the actions proposed in a terraform plan. It is used to deploy your infrastructure. Typically apply should be run after terraform init and terraform plan. Enter yes when prompted "Enter a value:".
This command will show whether the syntax used is correct or not
This command scans the configuration files in the current working directory and formats the code. It is used to improve the readability of files.
This command will list all the providers used in the configuration file
This command will mirror the provider configuration in a new path.
This command will print all the output variables in the configuration files
This command is used to sync the terraform with real-world resources
This command will show the resources we have created.
To destroy the infrastructure
Last updated