From 34bf4e595571337d247eace5d6bbb349614a078a Mon Sep 17 00:00:00 2001 From: "Miguel A. Calles, MBA" <44813512+miguel-a-calles-mba@users.noreply.github.com> Date: Mon, 21 Oct 2019 16:30:02 -0700 Subject: [PATCH] Updated variable boolean casting documentation --- docs/providers/aws/guide/variables.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/providers/aws/guide/variables.md b/docs/providers/aws/guide/variables.md index e6d63b65e..67062eb92 100644 --- a/docs/providers/aws/guide/variables.md +++ b/docs/providers/aws/guide/variables.md @@ -46,6 +46,9 @@ You can define your own variable syntax (regex) if it conflicts with CloudFormat - [CloudFormation stack outputs](#reference-cloudformation-outputs) - [Properties exported from Javascript files (sync or async)](#reference-variables-in-javascript-files) - [Pseudo Parameters Reference](#pseudo-parameters-reference) +- [Casting String Variable Values to Boolean](#casting-string-variables-values-to-boolean) + +## Casting string variables to boolean values ## Recursively reference properties @@ -658,7 +661,7 @@ Resources: - 'log-group:/aws/lambda/*:*:*' ``` -## Casting string variables to boolean values +## Casting string variables values to boolean In some cases, a parameter expect a `true` or `false` value. If you are using a variable to define the value, it may return as a string (e.g. when using SSM variables) and thus return a `"true"` or `"false"` value.