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 init
command. - Review the execution plan using the
terraform plan
command. - Apply the changes using the
terraform apply
command.
- To delete the infrastructure completely run the
terraform destroy
command. - 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