VladRassokhin / intellij-hcl

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

metadata for cloudflare got updated #265

Closed boredland closed 5 years ago

boredland commented 5 years ago

Prerequisites

Installation details

Terraform Configuration Files

// add mx records for user mail
resource "cloudflare_record" "mx" {
  for_each   = {
  for key, value in var.mx_records:
  value.target => value
  }
  zone_id    = cloudflare_zone.zone.id
  name       = each.value.prefix != "" ? each.value.prefix : cloudflare_zone.zone.zone
  type       = "MX"
  value      = each.key
  priority   = each.value.priority
  ttl        = 3600
  depends_on = [
    cloudflare_zone.zone]
}

Expected Behavior

The hcl definition should pass validation.

Actual Behavior

The syntaxhighlighting says `Missing required properties: domain" -> the metadata isn't up to date with the changes for the cloudflare provider v2.0: https://www.terraform.io/docs/providers/cloudflare/guides/version-2-upgrade.html

VladRassokhin commented 5 years ago

Thanks for reporting, will be available in 0.7.7