---
title: "Discussion on \"Day 5 — Terraform Variables\" | Hashnode"
description: "Discussion on \"Day 5 — Terraform Variables\". 1. Variables Based on Purpose (Most Important)\n1️⃣ Input Variables\nUsed to pass values into Terraform.\n\nAvoid hardcoding\n\nMake configs reusable\n\nCan be mandatory or optional (via default)\n\n\nCommon sources:\n\nterraform.tfvars\n\n*.auto.tfvars\n\n-var / -va..."
url: "https://hashnode.com/posts/day-5-terraform-variables/695b552416750a1492eb6ba3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Day 5 — Terraform Variables](https://sidharthhhh.hashnode.dev/day-5-terraform-variables?utm_source=hashnode&utm_medium=feed)

1\. Variables Based on Purpose (Most Important) 1️⃣ Input Variables Used to pass values into Terraform. Avoid hardcoding Make configs reusable Can be mandatory or optional (via default) Common sources: terraform.tfvars \*.auto.tfvars -var / -va...

Jan 5 · 1 min read · sidharthhhh.hashnode.dev  
Read the article

-   [#terraform](https://hashnode.com/tag/terraform)
-   [#30daysofawsterraform](https://hashnode.com/tag/30daysofawsterraform)
-   [#aws](https://hashnode.com/tag/aws)
-   [#terraform-aws-infrastructureascode-provisioning-automation-cloudcomputing](https://hashnode.com/tag/terraform-aws-infrastructureascode-provisioning-automation-cloudcomputing)

## Written by

[Sidharth Shukla](https://hashnode.com/@sidharth007)

@sidharth007 · ho.1044, sector-7, bahadurgarh

  
[View profile](https://hashnode.com/@sidharth007)

DevOps Enginner

DevOps Enginner

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
