Terraform HCL
Links: 113 Terraform Index
HCL¶
Basics¶
- Creating a simple file
filename is compulsory for resource type local_file.
- 
- Some examples of AWS resources: -

-
- A terraform workflow consists of 4 steps:
- Write the configuration file.
- Next run the
terraform initcommand. - Review the execution plan using the
terraform plancommand. - Apply the changes using the
terraform applycommand.
- To delete the infrastructure completely run the
terraform destroycommand. - Getting the version of modules and terraform after initialising terraform
terraform -v
terraform show: the terraform show command is used to provide human-readable output from a state or plan file.
Last updated: 2023-01-04