DEV Community

muckitymuck
muckitymuck

Posted on • Updated on

Terraform Cheat Sheet

Will add more later:
As Main.tf
Terraform reference - provider.tf
Alternatively, You can break it up into separate files:
Terraform reference - Page 2

Terraform AWS resource list

Commands:
terraform init
initialize a working directory containing Terraform configuration files

terraform fmt
formats the files to be Terraform friendly.

terraform validate
checks config files but does not check remote services

terraform plan
creates execution plan

terraform apply
executes the actions proposed in a Terraform plan

terraform destroy
tears down terraform infrastructure

For the Terraform Import method:
https://spacelift.io/blog/importing-exisiting-infrastructure-into-terraform

Top comments (0)