terraform-oci-open-lz icon indicating copy to clipboard operation
terraform-oci-open-lz copied to clipboard

Unknown type 'IPSEC_TUNNEL' while creating a DRT Attachment of type IPSEC_TUNNEL

Open paalonso opened this issue 1 year ago • 1 comments
trafficstars

While creating an IPSEC_TUNNEL DRG attachment type and configuring in the network_details the type as IPSEC_TUNNEL, we got an error on apply operation with "Error: unknown type 'IPSEC_TUNNEL' was specified.

Is something different is specified in the type argument we got an error like: "Error: expected network_details.0.type to be one of [IPSEC_TUNNEL LOOPBACK REMOTE_PEERING_CONNECTION VCN].

paalonso avatar Feb 27 '24 13:02 paalonso

Found a reference in the OCI TF provider (issue#1495), that we should use a different resource type for dealing with IPSEC_TUNNEL, RPCs and VIRTUAL CIRCUIT attachments called "oci_core_drg_attachment_management", states:

DRG Attachments for virtual circuits, IPSec tunnels, and remote peering connections are created (and deleted) automatically on your behalf when you create (or delete) the network object. Hence, this management resource is used to update these types of autogenerated DRG Attachments. The user cannot create DRG attachments of these types as needed.

We have the capability to deal with the DRG Attachment management, but seems that we have some kind of conflict while using the drg_attchaments_management.tf in the CIS Core Module. Will open an internal issue with the CIS Core Networking Module team.

paalonso avatar Mar 08 '24 13:03 paalonso