Skip to content

Commit 9639cbd

Browse files
committed
Fix the service gateway example to use new service names
1 parent b9f9c13 commit 9639cbd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

docs/examples/networking/service_gateway/service_gateway.tf

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ resource "oci_core_vcn" "test_vcn" {
4141
data "oci_core_services" "test_services" {
4242
filter {
4343
name = "name"
44-
#values = ["Test-Casper-Service", ".*ObjectStorage"]
45-
values = [".*ObjectStorage"]
44+
values = [".*Object.*Storage"]
4645
regex = true
4746
}
4847
}
@@ -53,9 +52,6 @@ resource "oci_core_service_gateway" "test_service_gateway" {
5352
services {
5453
service_id = "${lookup(data.oci_core_services.test_services.services[0], "id")}"
5554
}
56-
/*services {
57-
service_id = "${lookup(data.oci_core_services.test_services.services[1], "id")}"
58-
}*/
5955
vcn_id = "${oci_core_vcn.test_vcn.id}"
6056

6157
#Optional
@@ -80,11 +76,6 @@ resource "oci_core_route_table" "test_route_table" {
8076
destination_type = "SERVICE_CIDR_BLOCK"
8177
network_entity_id = "${oci_core_service_gateway.test_service_gateway.id}"
8278
}
83-
/*route_rules {
84-
destination = "${lookup(data.oci_core_services.test_services.services[1], "cidr_block")}"
85-
destination_type = "SERVICE_CIDR_BLOCK"
86-
network_entity_id = "${oci_core_service_gateway.test_service_gateway.id}"
87-
}*/
8879
}
8980

9081
resource "oci_core_security_list" "test_security_list" {

0 commit comments

Comments
 (0)