1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-28 19:49:50 +02:00

Added content for terraform local values page in terraform roadmap. (#7060)

This commit is contained in:
Kavish Baghel
2024-09-10 13:59:24 +05:30
committed by GitHub
parent 52d0fffaab
commit f81783ff9d

View File

@@ -1 +1,8 @@
# Local Values
# Local Values
Local values can be understood as a name assigned to any expression to use it multiple times directly by the name in your terraform module. Local values are referred to as locals and can be declared using the `locals` block. Local values can be a literal constants, resource attributes, variables, or other local values. Local values are helpful to define expressions or values that you need to use multiple times in the module as it allows the value to be updated easily just by updating the local value. A local value can be accessed using the `local` argument like `local.<value_name>`.
Learn more from the following resources:
- [@official@Local Values](https://developer.hashicorp.com/terraform/language/values/locals)
- [@Article@Terraform Locals](https://spacelift.io/blog/terraform-locals)