Skip to content

Commit 69c3614

Browse files
committed
Adding Services datasource, ServiceGateway resource, and route table and security list changes for service gateways
1 parent 5042dda commit 69c3614

18 files changed

+2288
-94
lines changed

docs/core/route_tables.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ The following attributes are exported:
1414
* `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](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
1515
* `id` - The route table's Oracle ID (OCID).
1616
* `route_rules` - The collection of rules for routing destination IPs to network devices.
17-
* `cidr_block` - A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target). Example: `0.0.0.0/0`
17+
* `cidr_block` - Deprecated, Destination and DestinationType should be used instead; request including both fields will be rejected. A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target). Example: `0.0.0.0/0`
18+
* `destination` - The destination service cidrBlock or destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target). Examples: `10.12.0.0/16` `oci-phx-objectstorage`
19+
* `destination_type` - Type of destination for the route rule. SERVICE_CIDR_BLOCK should be used if destination is a service cidrBlock. CIDR_BLOCK should be used if destination is IP address range in CIDR notation. It must be provided along with `destination`.
1820
* `network_entity_id` - The OCID for the route rule's target. For information about the type of targets you can specify, see [Route Tables](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm).
1921
* `state` - The route table's current state.
2022
* `time_created` - The date and time the route table was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z`
@@ -47,7 +49,9 @@ The following arguments are supported:
4749
* `display_name` - (Optional) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
4850
* `freeform_tags` - (Optional) 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](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
4951
* `route_rules` - (Required) The collection of rules used for routing destination IPs to network devices.
50-
* `cidr_block` - (Required) A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target). Example: `0.0.0.0/0`
52+
* `cidr_block` - (Optional) Deprecated, Destination and DestinationType should be used instead; request including both fields will be rejected. A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target). Example: `0.0.0.0/0`
53+
* `destination` - (Optional) The destination service cidrBlock or destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target). Examples: `10.12.0.0/16` `oci-phx-objectstorage`
54+
* `destination_type` - (Optional) Type of destination for the route rule. SERVICE_CIDR_BLOCK should be used if destination is a service cidrBlock. CIDR_BLOCK should be used if destination is IP address range in CIDR notation. It must be provided along with `destination`.
5155
* `network_entity_id` - (Required) The OCID for the route rule's target. For information about the type of targets you can specify, see [Route Tables](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm).
5256
* `vcn_id` - (Required) The OCID of the VCN the route table belongs to.
5357

@@ -64,7 +68,9 @@ The following arguments support updates:
6468
* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
6569
* `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](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
6670
* `route_rules` - The collection of rules used for routing destination IPs to network devices.
67-
* `cidr_block` - A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target). Example: `0.0.0.0/0`
71+
* `cidr_block` - Deprecated, Destination and DestinationType should be used instead; request including both fields will be rejected. A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target). Example: `0.0.0.0/0`
72+
* `destination` - The destination service cidrBlock or destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target). Examples: `10.12.0.0/16` `oci-phx-objectstorage`
73+
* `destination_type` - Type of destination for the route rule. SERVICE_CIDR_BLOCK should be used if destination is a service cidrBlock. CIDR_BLOCK should be used if destination is IP address range in CIDR notation. It must be provided along with `destination`.
6874
* `network_entity_id` - The OCID for the route rule's target. For information about the type of targets you can specify, see [Route Tables](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm).
6975

7076

@@ -79,8 +85,12 @@ resource "oci_core_route_table" "test_route_table" {
7985
compartment_id = "${var.compartment_id}"
8086
route_rules {
8187
#Required
82-
cidr_block = "${var.route_table_route_rules_cidr_block}"
8388
network_entity_id = "${oci_core_internet_gateway.test_internet_gateway.id}"
89+
90+
#Optional
91+
cidr_block = "${var.route_table_route_rules_cidr_block}"
92+
destination = "${var.route_table_route_rules_destination}"
93+
destination_type = "${var.route_table_route_rules_destination_type}"
8494
}
8595
vcn_id = "${oci_core_vcn.test_vcn.id}"
8696

0 commit comments

Comments
 (0)