terraform-provider-azurerm
terraform-provider-azurerm copied to clipboard
Use of 'proper' numerical indexing in code examples for documentation
Is there an existing issue for this?
- [X] I have searched the existing issues
Community Note
- Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Terraform Version
v1.6.6
AzureRM Provider Version
3.96.0
Affected Resource(s)/Data Source(s)
azurerm_container_registry
Terraform Configuration Files
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/container_registry
Debug Output/Panic Output
n/a
Expected Behaviour
n/a
Actual Behaviour
n/a
Steps to Reproduce
n/a
Important Factoids
No response
References
noticing the examples at the bottom of this page. I think the examples using the index reference of .0. is now 'technically' incorrect.
For instance the error uses the new 'correct' format
│ 50: principal_id = azurerm_container_registry.default.identity.principal_id
│
│ Block type "identity" is represented by a list of objects, so it must be
│ indexed using a numeric key, like .identity[0].