hashicorp / terraform-cdk

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
https://www.terraform.io/cdktf
Mozilla Public License 2.0
4.88k stars 455 forks source link

Invalid link in docs #1988

Closed paymog closed 2 years ago

paymog commented 2 years ago

Community Note

The [cdk iterators page)[https://www.terraform.io/cdktf/concepts/iterators] has the following explanation

You cannot access the index of items when iterating over lists. This is because CDKTF implicitly converts lists to sets when iterating over them, but Terraform requires sets for iteration. This behavior prevents Terraform from accidentally deleting and recreating resources when their indices change. If you need an index, use an escape hatch with the count.index property.

The hyperlink to the documentation for the escape hatch is https://www.terraform.io/cdktf/concepts/providers-and-resources#escape-hatch which does not seem to exist.

paymog commented 2 years ago

Ah, looks like it should link to https://www.terraform.io/cdktf/concepts/remote-backends#escape-hatches

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.