oci_core_drg_route_table
This resource provides the Drg Route Table resource in Oracle Cloud Infrastructure Core service.
Creates a new DRG route table for the specified DRG. Assign the DRG route table to a DRG attachment
using the UpdateDrgAttachment
or CreateDrgAttachment
operations.
Example Usage
resource "oci_core_drg_route_table" "test_drg_route_table" {
#Required
drg_id = oci_core_drg.test_drg.id
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
display_name = var.drg_route_table_display_name
freeform_tags = {"Department"= "Finance"}
import_drg_route_distribution_id = oci_core_drg_route_distribution.test_drg_route_distribution.id
is_ecmp_enabled = var.drg_route_table_is_ecmp_enabled
}
Argument Reference
The following arguments are supported:
defined_tags
- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
display_name
- (Optional) (Updatable) A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.drg_id
- (Required) The OCID of the DRG the DRG route table belongs to.freeform_tags
- (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}
import_drg_route_distribution_id
- (Optional) (Updatable) The OCID of the import route distribution used to specify how incoming route advertisements through referenced attachments are inserted into the DRG route table.is_ecmp_enabled
- (Optional) (Updatable) If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to your on-premises networks, enable ECMP on the DRG route table.remove_import_trigger
- (Optional) (Updatable) An optional property when flipped disables the import of route Distribution by setting import_drg_route_distribution_id to null.
** 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:
compartment_id
- The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
display_name
- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.drg_id
- The OCID of the DRG the DRG that contains this route table.freeform_tags
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}
id
- The OCID of the DRG route table.import_drg_route_distribution_id
- The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.is_ecmp_enabled
- If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to your on-premises network, enable ECMP on the DRG route table to which these attachments import routes.state
- The DRG route table’s current state.time_created
- The date and time the DRG route table was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Drg Route Table
* update
- (Defaults to 20 minutes), when updating the Drg Route Table
* delete
- (Defaults to 20 minutes), when destroying the Drg Route Table
Import
DrgRouteTables can be imported using the id
, e.g.
$ terraform import oci_core_drg_route_table.test_drg_route_table "id"