Skip to content

Breaking change to resource panos_administrative_tag in panos provider versions after 2.0.0-rc.6 #486

@sgreathouse-rgare

Description

@sgreathouse-rgare

Versions after rc.6 made a breaking change

Updating the provider to 2.0.0 or newer results in the error:
Inappropriate value for attribute "location": attribute "shared": object required.

The solution is to change panos_administrative_tag resources location block from:

location = {
   shared = true
 }

to:

location = {
  shared = {}
}

However, the provider errors on the state file using the previous structure with:

 Error: Unable to Read Previously Saved State for UpgradeResourceState
   with panos_administrative_tag.app_name["***********************************"],
   on main.tf line XX, in resource "panos_administrative_tag" "app_name":
   XX: resource "panos_administrative_tag" "app_name" {
 There was an error reading the saved resource state using the current
 resource schema.
 If this resource state was last refreshed with Terraform CLI 0.11 and
 earlier, it must be refreshed or applied with an older provider version
 first. If you manually modified the resource state, you will need to manually
 modify it to match the current resource schema. Otherwise, please report this
 to the provider developer:
 AttributeName("location").AttributeName("shared"): invalid JSON, expected
 "{", got %!q(bool=true)

This change is not clearly documented.
I would rather not engage in state-surgery on a production system with thousands of tag resources.

Could you please:

  • Document the changes
  • Get the provider to update state to the new format
  • Or support the old shared = true format

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions