You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example will return VPCs with the tag `Project` with the value `example`.
28
+
29
+
```terraform
30
+
list "aws_instance" "example" {
31
+
provider = aws
32
+
33
+
config {
34
+
filter {
35
+
name = "tag:Project"
36
+
values = ["example"]
37
+
}
38
+
}
39
+
}
40
+
```
41
+
42
+
## Argument Reference
43
+
44
+
This list resource supports the following arguments:
45
+
46
+
*`filter` - (Optional) One or more filters to apply to the search.
47
+
If multiple `filter` blocks are provided, they all must be true.
48
+
For a full reference of filter names, see [describe-vpcs in the AWS CLI reference][describe-vpcs].
49
+
See [`filter` Block](#filter-block) below.
50
+
*`region` - (Optional) [Region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints) to query.
51
+
Defaults to the Region set in the [provider configuration](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#aws-configuration-reference).
52
+
*`vpc_ids` - (Optional) List of VPC IDs to query.
53
+
54
+
### `filter` Block
55
+
56
+
The `filter` block supports the following arguments:
57
+
58
+
*`name` - (Required) Name of the filter.
59
+
For a full reference of filter names, see [describe-vpcs in the AWS CLI reference][describe-vpcs].
60
+
`is-default` is not supported.
61
+
*`values` - (Required) One or more values to match.
0 commit comments