From a1e73ade61d7e52cf7d2b160b531d52346f560f5 Mon Sep 17 00:00:00 2001 From: Nick Fagerlund Date: Tue, 1 Dec 2020 13:12:12 -0800 Subject: [PATCH] website: link to expressions tutorial where applicable This tutorial uses references to local values, conditional expressions, and splat expressions, so I've added it to those pages as well as the expressions overview. --- website/docs/configuration/expressions/conditionals.html.md | 2 ++ website/docs/configuration/expressions/index.html.md | 2 ++ website/docs/configuration/expressions/references.html.md | 2 ++ website/docs/configuration/expressions/splat.html.md | 2 ++ 4 files changed, 8 insertions(+) diff --git a/website/docs/configuration/expressions/conditionals.html.md b/website/docs/configuration/expressions/conditionals.html.md index b9f247e1b..56edeac1e 100644 --- a/website/docs/configuration/expressions/conditionals.html.md +++ b/website/docs/configuration/expressions/conditionals.html.md @@ -5,6 +5,8 @@ page_title: "Conditional Expressions - Configuration Language" # Conditional Expressions +> **Hands-on:** Try the [Create Dynamic Expressions](https://learn.hashicorp.com/tutorials/terraform/expressions?in=terraform/configuration-language&utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial on HashiCorp Learn. + A _conditional expression_ uses the value of a bool expression to select one of two values. diff --git a/website/docs/configuration/expressions/index.html.md b/website/docs/configuration/expressions/index.html.md index 0de96564c..d29fb4042 100644 --- a/website/docs/configuration/expressions/index.html.md +++ b/website/docs/configuration/expressions/index.html.md @@ -5,6 +5,8 @@ page_title: "Expressions - Configuration Language" # Expressions +> **Hands-on:** Try the [Create Dynamic Expressions](https://learn.hashicorp.com/tutorials/terraform/expressions?in=terraform/configuration-language&utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial on HashiCorp Learn. + _Expressions_ are used to refer to or compute values within a configuration. The simplest expressions are just literal values, like `"hello"` or `5`, but the Terraform language also allows more complex expressions such as diff --git a/website/docs/configuration/expressions/references.html.md b/website/docs/configuration/expressions/references.html.md index a1cb91781..7954af0bb 100644 --- a/website/docs/configuration/expressions/references.html.md +++ b/website/docs/configuration/expressions/references.html.md @@ -5,6 +5,8 @@ page_title: "References to Values - Configuration Language" # References to Named Values +> **Hands-on:** Try the [Create Dynamic Expressions](https://learn.hashicorp.com/tutorials/terraform/expressions?in=terraform/configuration-language&utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial on HashiCorp Learn. + Terraform makes several kinds of named values available. Each of these names is an expression that references the associated value; you can use them as standalone expressions, or combine them with other expressions to compute new diff --git a/website/docs/configuration/expressions/splat.html.md b/website/docs/configuration/expressions/splat.html.md index d0fa27f08..ce3b18d24 100644 --- a/website/docs/configuration/expressions/splat.html.md +++ b/website/docs/configuration/expressions/splat.html.md @@ -5,6 +5,8 @@ page_title: "Splat Expressions - Configuration Language" # Splat Expressions +> **Hands-on:** Try the [Create Dynamic Expressions](https://learn.hashicorp.com/tutorials/terraform/expressions?in=terraform/configuration-language&utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial on HashiCorp Learn. + A _splat expression_ provides a more concise way to express a common operation that could otherwise be performed with a `for` expression.