Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

[incorrect warning] azurerm_subnet . address_prefixes #296

Closed
5 tasks done
sogaoh opened this issue May 4, 2020 · 0 comments
Closed
5 tasks done

[incorrect warning] azurerm_subnet . address_prefixes #296

sogaoh opened this issue May 4, 2020 · 0 comments
Milestone

Comments

@sogaoh
Copy link

sogaoh commented May 4, 2020

Prerequisites

  • Ensure you have latest version of plugin installed
  • Search for possible issue duplicates

Installation details

  • IDE version : IntelliJ IDEA 2020.1.1 (Ultimate Edition) Build #IU-201.7223.91, built on April 30, 2020
  • intellij-hcl plugin version: 0.7.7
  • Terraform version: v0.12.24

Terraform Configuration Files

resource "azurerm_subnet" "example-subnet" {
  name                 = "example-subnet"
  virtual_network_name = azurerm_virtual_network.example_vnet.name
  resource_group_name  = azurerm_resource_group.example_rg.name
  address_prefixes     = ["172.31.20.0/24"]
  #address_prefix       = "172.31.20.0/24"
}

(same as https://gist.github.com/sogaoh/e7e32724cd62acdece46b72cc80b867a )

Exception

(none: Only WARNING)

Expected Behavior

No WARNING showed.

Actual Behavior

  • Missing required properties: address_prefix showed.
    incorrect_warning-azurerm_subnet address_prefixes

  • [supplement] When run terraform plan on using address_prefix , the warinig message Warning: "address_prefix": [DEPRECATED] Use the 'address_prefixes' property instead. showed.
    warning-at-plan-azurerm_subnet address_prefix

Steps to Reproduce

  1. Generate a new .tf file.
  2. Copy & paste example_subnet.tf content. (See above section Terraform Configuration Files)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants