From f81783ff9d6b68b0d7ad9218d0a4227c2e6a3c84 Mon Sep 17 00:00:00 2001 From: Kavish Baghel Date: Tue, 10 Sep 2024 13:59:24 +0530 Subject: [PATCH] Added content for terraform local values page in terraform roadmap. (#7060) --- .../content/local-values@1mFih8uFs3Lc-1PLgwiAU.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/data/roadmaps/terraform/content/local-values@1mFih8uFs3Lc-1PLgwiAU.md b/src/data/roadmaps/terraform/content/local-values@1mFih8uFs3Lc-1PLgwiAU.md index 155177856..1ebcb3e59 100644 --- a/src/data/roadmaps/terraform/content/local-values@1mFih8uFs3Lc-1PLgwiAU.md +++ b/src/data/roadmaps/terraform/content/local-values@1mFih8uFs3Lc-1PLgwiAU.md @@ -1 +1,8 @@ -# Local Values \ No newline at end of file +# 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.`. + +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)