vscode-terraform icon indicating copy to clipboard operation
vscode-terraform copied to clipboard

"Unexpected attribute: An attribute named "private_endpoint_network_policies" is not expected here" and "Unexpected attribute: An attribute named "bgp_route_propagation_enabled" is not expected here"

Open dbhaigh opened this issue 4 months ago • 0 comments

Extension Version

v2.33.0

VS Code Version

Version: 1.94.2 (system setup) Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427 Date: 2024-10-09T16:08:44.566Z Electron: 30.5.1 ElectronBuildId: 10262041 Chromium: 124.0.6367.243 Node.js: 20.16.0 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631

Operating System

Windows 11 Home Version

Terraform Version

v1.9.5

Steps to Reproduce

create the terrafrm for an azurerm_subnet set private_endpoint_network_policies = "Enabled"

or create the terraform for an azurerm_route_table set bgp_route_propagation_enabled = false

Expected Behavior

I expect the two settings to NOT be underlined red and be told that they are not expected here

Actual Behavior

the two settings are marked red with the message that they are not expected here

However everything deploys correctly if I leave those settings in place

Terraform Configuration

No response

Project Structure

No response

Gist

No response

Anything Else?

No response

Workarounds

My work-around has been to ignore the error message as a red herring as the latest subnet and route table modules still support these settings

References

No response

Help Wanted

  • [ ] I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, 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

dbhaigh avatar Oct 18 '24 15:10 dbhaigh