PaloAltoNetworks / terraform-provider-scm

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

Can't destroy/modify IPSec tunnels #11

Closed TwoStepz closed 6 months ago

TwoStepz commented 7 months ago

Describe the bug

Can't destroy/modify an IPSec tunnel as it won't use the "folder" attribute when performing the API call

Expected behavior

Terraform destroy should be able to remove IPSec tunnels

Current behavior

IPSec tunnels can be created via the "scm_ipsec_tunnel" resource, but can't be destroyed/modified

Steps to reproduce

  1. Create an ipsec tunnel using the "scm_ipsec_tunnel" resource
  2. Include the folder parameter
  3. Perform a terraform apply command
  4. Then try to perform a terraform destroy command
  5. You'll get the following error: [HTTP 400] API_I00035 Invalid Request Payload [object Object] - ["folder" is required]

Screenshots

Terraform file structure using the "scm_ipsec_tunnel" resource and referecing the "folder" attribute Screenshot 2024-02-13 at 7 35 15 PM

Errors when trying to execute a "terraform destroy" command, even when having the "folder" attribute on the terraform file

Screenshot 2024-02-12 at 9 29 43 PM

Context

I'm trying to standardize the Remote Network configuration for a customer

Your Environment

ancoleman commented 6 months ago

@TwoStepz this should now be fixed in @v0.4.0 please test for yourself. If everything is good, report back and this will be closed.

shinmog commented 6 months ago

seems to be fixed, closing this issue