VladRassokhin / intellij-hcl

HCL language support for IntelliJ platform based IDEs
Apache License 2.0
244 stars 47 forks source link

Update Fastly Schema #301

Closed ghost closed 4 years ago

ghost commented 4 years ago

The fastly_ip_ranges data source now includes ipv6_cidr_blocks. The plugin does not recognize that property. I believe the provider schema needs to be updated.

Prerequisites

Installation details

resource "aws_security_group" "fastly_sg" { name = "Fastly" vpc_id = var.vpc_id

ingress { from_port = 443 protocol = "tcp" to_port = 443 cidr_blocks = [data.fastly_ip_ranges.fastly_ips.cidr_blocks] ipv6_cidr_blocks = [data.fastly_ip_ranges.fastly_ips.ipv6_cidr_blocks] } }


### Exception
```text
N/A

Expected Behavior

The IDE should display no warnings/errors.

Actual Behavior

The IDE indicates Unresolved reference ipv6_cidr_blocks

Steps to Reproduce

  1. Create a new .tf file.
  2. Ensure fastly provider is used.
  3. Copy & paste HCL from above into .tf file.
  4. Observe inspection error.
haidaraM commented 4 years ago

For fast schema updates, you should consider these instructions. If you want to have the updates more quickly, you may give a try to the fork in this PR which is automatically updated every day.

ghost commented 4 years ago

🤦 My bad. That works, thanks!