PaloAltoNetworks / terraform-provider-scm

The Terraform provider for Strata Cloud Manager
Apache License 2.0
7 stars 2 forks source link

Address Group Resource not working as intended #10

Closed TwoStepz closed 6 months ago

TwoStepz commented 7 months ago

Describe the bug

scm_address_group path expression is not processed correctly by terraform provider

Expected behavior

terraform should be able to process the path expression properly

Current behavior

terraform plan/apply fails if address group resource it's used

Steps to reproduce

scm_address_group (Resource)

  1. Create any address group or even use the one on the example
  2. Run Terraform Plan
  3. It will fail indicating that the issue relies on the path expression used by the Terraform Provider

Error: Invalid Path Expression for Schema │ │ with scm_address_group.example, │ on main.tf line 25, in resource "scm_address_group" "example": │ 25: resource "scm_address_group" "example" { │ │ The Terraform Provider unexpectedly provided a path expression that does not match the current schema. This can happen if the path expression does │ not correctly follow the schema in structure or types. Please report this to the provider developers. │ │ Path Expression: dynamic_value.<.static

Context

Trying to create an address group formed by multiple address objects also on terraform

Your Environment