Skip to content

tboggs300/terraform-projects

Repository files navigation

terraform-projects

This repository is a place to show examples of HashiCorp's Terraform in use as well as help others learn. To use Terraform in your project, check out their site

Deploying Infrastructure

terraform init

This will initialize Terraform in the working directory by downloading the required providers and any specified modules.

terraform plan

This is used to draft up a list of changes to be made based on the existing .tfstate file.

terraform apply

This will re-run terraform plan and prepare for deploying of you infrastrucure. After this command completes, you will be asked if you wish to proceed with deployment. This can be automated by appending --auto-approve as a command line argument.

Testing

terraform fmt

Running terraform fmt will automatically format your Terraform code to match that of the standard set by HashiCorp. By appending --check, the command will return a pass or fail depending on if your code meets the standard.

terraform validate

Terratest

Recommended Resources

Book Format

Video Format

Documentation

Other Repositories

About

A repository to help others learn Terraform with lessons and example projects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published