From d6296fbb7d374bab59fb8f6c7084d374acf7002d Mon Sep 17 00:00:00 2001 From: Emilien Kenler Date: Wed, 21 Sep 2016 17:31:44 +0900 Subject: [PATCH] Correct the data source configuration example to be valid --- .../source/docs/configuration/data-sources.html.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/website/source/docs/configuration/data-sources.html.md b/website/source/docs/configuration/data-sources.html.md index a99a3ad4a..4a31835be 100644 --- a/website/source/docs/configuration/data-sources.html.md +++ b/website/source/docs/configuration/data-sources.html.md @@ -39,11 +39,15 @@ A data source configuration looks like the following: ``` // Find the latest available AMI that is tagged with Component = web data "aws_ami" "web" { - state = "available" - tags = { - Component = "web" + filter { + name = "state" + values = ["available"] } - select = "latest" + filter { + name = "tag:Component" + values = ["web"] + } + most_recent = true } ```