Skip to content

Commit 1bb637c

Browse files
authored
Enhance aws_ami data source configuration (this data source does not … (#982)
The aws_ami data source does not accept an argument of "id"; it only exports it.
2 parents 4d98bde + 8b0868f commit 1bb637c

File tree

1 file changed

+8
-1
lines changed
  • content/terraform/v1.13.x/docs/language/validate

1 file changed

+8
-1
lines changed

content/terraform/v1.13.x/docs/language/validate/index.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,14 @@ For example, you can use a `postcondition` to detect if a user accidentally prov
120120

121121
```hcl
122122
data "aws_ami" "example" {
123-
id = var.aws_ami_id
123+
executable_users = ["self"]
124+
most_recent = true
125+
owners = ["self"]
126+
127+
filter {
128+
name = "name"
129+
values = ["myami-*"]
130+
}
124131
125132
lifecycle {
126133
# The AMI ID must refer to an existing AMI that has the tag "nomad-server".

0 commit comments

Comments
 (0)