pingidentity / terraform-provider-davinci

PingOne DaVinci Terraform Provider
https://registry.terraform.io/providers/pingidentity/davinci/latest
Mozilla Public License 2.0
4 stars 1 forks source link

DaVinci Export JSON contains unknown properties warning on validate/plan, describing "Save flow variable nodes are present but missing variable values" #362

Closed patrickcping closed 2 months ago

patrickcping commented 2 months ago

Community Note

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

DaVinci Terraform provider Version

Terraform Version

v0.4.1

Affected Resource(s)

Terraform Configuration Files

# Copy-paste your DaVinci related Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

# Remember to replace any account/customer sensitive information in the configuration before submitting the issue

# NOTE: PLEASE DO NOT share DaVinci JSON exports publicly without encrypting files first.  DaVinci JSON exports can contain environment/tenant specific information, and may also include secrets.
resource "davinci_flow" "lfwgfppqrp" {
  environment_id = pingone_environment.lfwgfppqrp.id

  name        = "lfwgfppqrp"
  description = "lfwgfppqrp description"

  flow_json = file("./flows/lfwgfppqrp.json")

  # connection_link and subflow_link fields present
}

Debug Output

Warning: DaVinci Export JSON contains unknown properties

 with davinci_flow.lfwgfppqrp,
 on davinci.tf line 514, in resource "davinci_flow" "lfwgfppqrp":
 514: flow_json = file("./flows/lfwgfppqrp.json")

 Save flow variable nodes are present but are missing variable values in the
 DaVinci Flow Export JSON. Please re-export the DaVinci flow ensuring that
 variable values are included.

Panic Output

N/a

Expected Behavior

No warning, flow exported with variable values

Actual Behavior

Warning as shown. Apply is not impacted

Steps to Reproduce

  1. terraform validate
  2. terraform plan

Important Factoids

References

patrickcping commented 2 months ago

The critical combination is that the error title is warning about unknown properties, yet the error message describes missing flow variable values. The message seemly conflicts with the title.

Found to be a false positive during the terraform validate step and does not change the outcome of the terraform plan step. terraform apply is unaffected and therefore the warning is safe to ignore