From fd4cc78839a617e81c62afc395a91c91c2916cfc Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Thu, 7 Sep 2017 13:49:33 -0400 Subject: [PATCH] docs: Add local values usage example --- website/docs/configuration/locals.html.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/configuration/locals.html.md b/website/docs/configuration/locals.html.md index 6067c5486..883d114ca 100644 --- a/website/docs/configuration/locals.html.md +++ b/website/docs/configuration/locals.html.md @@ -35,6 +35,12 @@ locals { default_name_prefix = "${var.project_name}-web" name_prefix = "${var.name_prefix != "" ? var.name_prefix : local.default_name_prefix}" } + +# Using a local value +resource "aws_s3_bucket" "files" { + bucket = "${local.name_prefix}-files" + # ... +} ``` ## Description