learn-terraform

Course outlines for learning terraform.

View the Project on GitHub robertdebock/learn-terraform

Define input variables

expected time requirements
60 minutes A computer with Terraform installed.

Goal: Learn how to define input variables.

Explanation

input output

Besides the code to build the infrastructure, you may need to have some details that are required to build the infrastructure. You can use Terrafor input variables.

Examples of input are:

Howto

Follow the steps described for your cloud provider.

Demo

Assignment

Questions:

  1. Why is the command line a best practice location for specifying sensitive variables?
  2. What would be one or more drawbacks of not using variables?
  3. Can I list my variables in input.tf instead of variables.tf?