VladRassokhin / intellij-hcl

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

Unknown block type backup_retention_settings #343

Closed muffl0n closed 3 years ago

muffl0n commented 3 years ago

Prerequisites

Installation details

Terraform Configuration Files

resource "google_sql_database_instance" "sophora" {
  project = var.project
  name    = var.instance_name
  region  = "europe-west3"

  database_version = "MYSQL_8_0"
  settings {
    tier            = var.tier
    disk_autoresize = true
    ip_configuration {
      ipv4_enabled    = false
      private_network = var.network
    }

    backup_configuration {
      enabled                        = true
      transaction_log_retention_days = 7
      start_time                     = "09:00" // local TZ
      binary_log_enabled             = true
      backup_retention_settings {
        retained_backups = 7
      }
    }

    maintenance_window {
      day = "2" // Thursday
      hour = "7" // UTC
      update_track = "stable"
    }
  }
}

Expected Behavior

No error message for sub-block "backup_retention_settings". Documentation shows that the block is correct, also terraform apply runs without problem.

Actual Behavior

Error message for sub-block "backup_retention_settings".

Bildschirmfoto 2021-07-14 um 14 06 50

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Place cursor over block "backup_retention_settings"
VladRassokhin commented 3 years ago

Fixed in 0.7.11