Correct the data source configuration example to be valid

This commit is contained in:
Emilien Kenler 2016-09-21 17:31:44 +09:00
parent a2d964769f
commit d6296fbb7d
No known key found for this signature in database
GPG Key ID: 02A3DA54FB9DCDEE
1 changed files with 8 additions and 4 deletions

View File

@ -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
}
```