Terraform Hello World basics for people who starts to learn it
- AWS cli installed and user access configured
- Terraform installed (feel free to use this guide: https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli)
- Logged-in to AWS UI console (optionally)
-
Navigate to the repo's root folder in your CLI
-
Init the repo:
$ terraform init -
Run to formate and check your code:
$ terraform fmt -
Run to see the plan (dry run):
$ terraform plan -
Run to apply the desired configuration:
$ terraform apply -
Run to destroy:
$ terraform destroy
Go to official registry to find plugins and modules: https://registry.terraform.io/