From 95721df95c0476142694081c97c65d6d6d884240 Mon Sep 17 00:00:00 2001 From: sylviamoss Date: Mon, 18 Jan 2021 13:53:57 +0100 Subject: [PATCH] add amazon-ami output example --- .../docs/templates/hcl_templates/datasources.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/website/content/docs/templates/hcl_templates/datasources.mdx b/website/content/docs/templates/hcl_templates/datasources.mdx index da4bec255..f0a6359bb 100644 --- a/website/content/docs/templates/hcl_templates/datasources.mdx +++ b/website/content/docs/templates/hcl_templates/datasources.mdx @@ -45,6 +45,20 @@ identifier, like `data...`. The output from the `amazon-ami.example` above can be accessed as follows: +Output data: +``` +"data.amazon-ami.example" { + id = "ami12345" + name = "MyAMI" + creation_date = "01/01/2021" + owner = "123456789" + owner_name = "Some Name" + tags = {"tag1": "value"} +} +``` + +Usage: + ```hcl // in a local locals {