oci_core_local_peering_gateway

This resource provides the Local Peering Gateway resource in Oracle Cloud Infrastructure Core service.

Creates a new local peering gateway (LPG) for the specified VCN.

Example Usage

resource "oci_core_local_peering_gateway" "test_local_peering_gateway" {
	#Required
	compartment_id = var.compartment_id
	vcn_id = oci_core_vcn.test_vcn.id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.local_peering_gateway_display_name
	freeform_tags = {"Department"= "Finance"}
	peer_id = oci_core_local_peering_gateway.test_local_peering_gateway2.id
	route_table_id = oci_core_route_table.test_route_table.id
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Local Peering Gateway * update - (Defaults to 20 minutes), when updating the Local Peering Gateway * delete - (Defaults to 20 minutes), when destroying the Local Peering Gateway

Import

LocalPeeringGateways can be imported using the id, e.g.

$ terraform import oci_core_local_peering_gateway.test_local_peering_gateway "id"