Merge pull request #8960 from MiLk/docs/data-source-configuration
Correct the data source configuration example to be valid
This commit is contained in:
commit
9b23d433c1
|
@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue