Skip to content

Commit c5f7da7

Browse files
committed
update example in list ref
1 parent 145e90a commit c5f7da7

File tree

2 files changed

+5
-7
lines changed
  • content/terraform/v1.14.x (alpha)/docs/language

2 files changed

+5
-7
lines changed

content/terraform/v1.14.x (alpha)/docs/language/block/tfquery/list.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,19 +303,19 @@ list "aws_iam_user" "the-accounts" {
303303

304304
### Reference a list block
305305

306-
In the following example, the `include_resource` argument is set to `true` in the `list.concept_pet.animals_with_legs` block. As a result, the query returns complete resource state information to the list of results for `animals_with_legs`. This lets the `list.concept_pet.more_pets` block reference the `length` attribute from `animals_with_legs` as the value for its `count` argument.
306+
In the following example, the `include_resource` argument is set to `true` in the `list.aws_instance.web` block. As a result, the query returns complete resource state information to the list of results for `web`. This lets the `list.aws_instance.web-bu` block reference the `length` attribute from `web` as the value for its `count` argument.
307307

308308
```hcl
309-
list "concept_pet" "animals_with_legs" {
310-
provider = concept
309+
list "aws_instance" "web" {
310+
provider = aws
311311
include_resource = true
312312
}
313313
314-
list "concept_pet" "more_pets" {
314+
list "aws_instance" "web-bu" {
315315
provider = concept
316316
317317
config {
318-
count = list.concept_pet.animals_with_legs.data[0].state.length
318+
count = list.aws_instance.web.data[0].state.length
319319
}
320320
}
321321
```

content/terraform/v1.14.x (alpha)/docs/language/import/bulk.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ Complete the following steps to find and import resources in bulk:
2020
- Import resources: Copy the generated configuration into your main.tf file and run a `terraform apply` command to import the resources.
2121
- After importing resources, you can remove the generated `import` block or keep it as an historical record.
2222

23-
24-
2523
## Define a query
2624

2725
To search for resources, you must create a standard `.tf` configuration and a `.tfquery.hcl` configuration.

0 commit comments

Comments
 (0)