Closed ancoleman closed 1 year ago
:tada: Thanks for opening your first issue here! Welcome to the community!
This issue seems to affect both destroy, apply, and plan operations once a resource has been built. I did validate that in the TFSTATE that the folder attribute lives, so it must be how we process and look for the folder attribute that is causing the problem.
This error is coming from the API...
This looks to be similar to the error I was getting with address objects: the API requires the folder param, but the spec I was given says only the UUID is required. I'll override this and add in the folder param for Read
/ Update
/ Delete
. You'll need to git pull
the SDK and this repo for the fix.
Ok, so it's possible that just the Read
function needed the folder
param, which would make it exactly like the address object issue. Please try all CRUD functions and see if they work. If something is still broken just reopen this issue and tell me what shouldn't get the folder
param.
After pulling the latest the provider build fails:
venv) (base) acoleman@M-KGYXTTH2MF terraform-provider-sase % go build
# [github.com/paloaltonetworks/terraform-provider-sase/internal/provider](http://github.com/paloaltonetworks/terraform-provider-sase/internal/provider)
internal/provider/ike_gateways.go:879:3: unknown field Folder in struct literal of type ikegateways.ReadInput
internal/provider/ike_gateways.go:893:30: input.Folder undefined (type ikegateways.ReadInput has no field or method Folder)
internal/provider/ike_gateways.go:1647:3: unknown field Folder in struct literal of type ikegateways.ReadInput
Describe the bug
Terraform Destroy fails to destroy resources
Expected behavior
When running terraform destroy, a resource should be destroyed.
Current behavior
When running terraform destroy, a resource fails to destroy with error: ["folder" is required]
Possible solution
Steps to reproduce
Screenshots
Context
Your Environment