When re-applying configuration of a previously created ipsec tunnel execution fails with the following error
scm_ike_gateway.at-vie-1120-ike: Refreshing state... [id=c95bc774-3196-4f2d-9cfc-3fff21fb5849]
scm_ipsec_tunnel.at-vie-1120: Refreshing state... [id=fe592103-aa9e-43cc-8c46-c5fb4cb17c58]
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: Error reading config
│
│ with scm_ipsec_tunnel.at-vie-1120,
│ on scm.tf line 31, in resource "scm_ipsec_tunnel" "at-vie-1120":
│ 31: resource "scm_ipsec_tunnel" "at-vie-1120" {
│
│ [HTTP 400] API_I00035 Invalid Request Payload [object Object] - ["folder" is required]
Expected behavior
References are resolved without error that folder is required, since folder is already specified
Current behavior
Execution fails with the provided error
Steps to reproduce
Execute (terraform apply) the following code twice to reproduce (assumes an IKE Profile named IKEv2-BCP-POLICY and IPSec profile named IPSEC-BCP-PROFILE exists)
Describe the bug
When re-applying configuration of a previously created ipsec tunnel execution fails with the following error
Expected behavior
References are resolved without error that folder is required, since folder is already specified
Current behavior
Execution fails with the provided error
Steps to reproduce
Execute (
terraform apply
) the following code twice to reproduce (assumes an IKE Profile named IKEv2-BCP-POLICY and IPSec profile named IPSEC-BCP-PROFILE exists)Your Environment
Terraform v1.6.6 MacOS 13.6.3 (darwin_arm64) Provider registry.terraform.io/paloaltonetworks/scm v0.1.1