Closed naishe closed 3 years ago
Continuing the thread, there are more places where the plugin does not work as intended. For example, this code exactly taken from the documentation has two issues:
resource "aws_appmesh_virtual_service" "admin_service" {
mesh_name = aws_appmesh_mesh.mesh.id
name = local.admin_service_dns
spec {
provider {
virtual_node {
virtual_node_name = aws_appmesh_virtual_node.admin_node.name
}
}
}
}
provider
block does not come in autocomplete (nor any of the attributes within this tag)@VladRassokhin sorry to bother, any idea?
For different providers resources, check this: https://github.com/VladRassokhin/intellij-hcl#terraform-external-metadata You need to build the schema manually.
For different providers resources, check this: https://github.com/VladRassokhin/intellij-hcl#terraform-external-metadata You need to build the schema manually.
Should it not work out of the box? This is not external meta data. This resource and properties are documented here so, like any other AWS resource the properties should auto complete and not show a warning without requiring the end user to do extra steps.
This project being closed sourced, I can't even pry open and see why is this the case.
The providers schemas is embeded with the plugin as the time the plugin is released. Since there is no new release of the plugin, if you want to have autocompletion for the new resources, you will need to do get the schemas manually or maybe use Terraform language server : https://github.com/hashicorp/terraform-ls/blob/main/docs/USAGE.md#intellij-ide
Otherwise, check my fork of the metadata that I update from time to time: https://github.com/haidaraM/terraform-metadata/tree/feat/updateProviders. You have the aws_appmesh_virtual_gateway
there :-) Just follow the instructions and should work
Partially fixed in 0.7.11
Fix for aws_appmesh_virtual_service.spec.provider.virtual_node
will be in next update (0.7.13)
Fixed in 0.7.13
The plugin does not seem to support
aws_appmesh_virtual_gateway
andaws_appmesh_gateway_route
.The examples are taken directly from https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appmesh_virtual_gateway (latest, at the time of posting this issue the version was mentioned
3.26.0
) The details are as follows:Prerequisites
Installation details
Help->About->Copy to Clipboard
)Settings->Plugins
) Hashicorp Terraform / HCL Language Support, JetBrains, 0.7.10terraform -v
) terraform -v Terraform v0.14.3Terraform Configuration Files
Exception
It shows
unknown block type
forspec
,listener
, andport_mapping
Expected Behavior
The autocomplete should work The warnings should not be shown
Actual Behavior
The autocomplete does not work Warnings are shown on valid blocks
Steps to Reproduce
Create a configuration using examples given in Terraform documentation for appmesh_virtual_gateway and appmesh_gateway_route
Observe the following: