Closed jiba21 closed 3 weeks ago
Hi @jiba21,
The Resource instance key must be given in square brackets
error is because you have too many segments in the data source address. The address of that data source can only be data.aws_default_tags.provider
. If there are other instances of that data source, you would put those in brackets like data.aws_default_tags.provider["tags"]
, but in this case it looks like a typo where you were working with the tags
attribute of that data source.
We use GitHub issues for tracking bugs and enhancements, rather than for questions. While we can sometimes help with certain simple problems here, it's better to use the community forum where there are more people ready to help.
Thanks!
Terraform Version
Terraform Configuration Files
Debug Output
╷ │ Error: Invalid address │ │ on parameter_store.tftest.hcl line 42, in mock_provider "aws": │ 42: target = data.aws_default_tags.provider.tags │ │ Resource instance key must be given in square brackets. ╵
Expected Behavior
It was great something