oci_core_ipsec_connection_tunnel_management

This resource provides the Ip Sec Connection Tunnel Management resource in Oracle Cloud Infrastructure Core service.

Updates the specified tunnel. This operation lets you change tunnel attributes such as the routing type (BGP dynamic routing or static routing). Here are some important notes:

* If you change the tunnel's routing type or BGP session configuration, the tunnel will go
down while it's reprovisioned.

* If you want to switch the tunnel's `routing` from `STATIC` to `BGP`, make sure the tunnel's
BGP session configuration attributes have been set ([bgpSessionConfig](#/en/iaas/20160918/datatypes/BgpSessionInfo)).

* If you want to switch the tunnel's `routing` from `BGP` to `STATIC`, make sure the
[IPSecConnection](#/en/iaas/20160918/IPSecConnection/) already has at least one valid CIDR
static route.

* IMPORTANT * Destroying the oci_core_ipsec_connection_tunnel_management leaves the resource in its existing state. It will not destroy the tunnel and it will not return the tunnel to its default values.

Example Usage

resource "oci_core_ipsec_connection_tunnel_management" "test_ip_sec_connection_tunnel" {
    #Required
    ipsec_id = oci_core_ipsec.test_ipsec.id
    tunnel_id = data.oci_core_ipsec_connection_tunnels.test_ip_sec_connection_tunnels.ip_sec_connection_tunnels[0].id
    #Optional
    routing = var.ip_sec_connection_tunnel_management_routing
    bgp_session_info {
        #Optional
        customer_bgp_asn = var.ip_sec_connection_tunnel_management_bgp_session_info_customer_bgp_asn
        customer_interface_ip = var.ip_sec_connection_tunnel_management_bgp_session_info_customer_interface_ip
        oracle_interface_ip = var.ip_sec_connection_tunnel_management_bgp_session_info_oracle_interface_ip
    }
    display_name = var.ip_sec_connection_tunnel_management_display_name

    encryption_domain_config {
        #Optional
        cpe_traffic_selector = var.ip_sec_connection_tunnel_management_encryption_domain_config_cpe_traffic_selector
        oracle_traffic_selector = var.ip_sec_connection_tunnel_management_encryption_domain_config_oracle_traffic_selector
    }
    shared_secret = var.ip_sec_connection_tunnel_management_shared_secret
    ike_version = "V1"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported: