Skip to content

Commit

Permalink
chore: update docs with feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Maed223 committed Oct 9, 2023
1 parent ca1cede commit 60f11e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/cdktf/concepts/resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ After deploying the resource, you can update your resource to use the newly assi

### Enabling `foreach` on a Resource

If you wish to incorporate a deployed resource into a composition using `foreach`, you can achieve this without destroying the resource by specifying the desired index using the `moveTo` function. The index should correspond to the key found in the `TerraformIterator` named iterator
To incorporate a deployed resource into a `foreach` composition without destroying the resource, specify an index as a second argument in the `moveTo` function. The index should correspond to the key in the `TerraformIterator` named `iterator`.

```ts
const iterator = TerraformIterator.fromMap({
Expand Down

0 comments on commit 60f11e7

Please sign in to comment.