Skip to content

Commit

Permalink
DocUpdate: add routing table route example
Browse files Browse the repository at this point in the history
  • Loading branch information
kavya498 committed Sep 1, 2021
1 parent fc00a17 commit fe1e3b2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
10 changes: 5 additions & 5 deletions website/docs/r/is_vpc_routing_table.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ resource "ibm_is_vpc" "testacc_vpc" {
name = "testvpc"
}
resource "ibm_is_vpc_routing_table" "test_ibm_is_vpc_routing_table" {
vpc = ibm_is_vpc.testacc_vpc.id
name = "routTabletest"
route_direct_link_ingress = true
route_transit_gateway_ingress = false
route_vpc_zone_ingress = false
vpc = ibm_is_vpc.testacc_vpc.id
name = "routTabletest"
route_direct_link_ingress = true
route_transit_gateway_ingress = false
route_vpc_zone_ingress = false
}
```
Expand Down
27 changes: 12 additions & 15 deletions website/docs/r/is_vpc_routing_table_route.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,25 @@ Create, update, or delete of an VPC routing tables. For more information, about
## Example usage

```terraform
resource "ibm_is_vpc_routing_table_route" "test_ibm_is_vpc_routing_table_route" {
vpc = ""
routing_table = ""
zone = "us-south-1"
name = "custom-route-2"
destination = "192.168.4.0/24"
action = "deliver"
next_hop = "10.0.0.4"
resource "ibm_is_vpc" "testacc_vpc" {
name = "testvpc"
}
resource "ibm_is_vpc_routing_table" "test_ibm_is_vpc_routing_table" {
vpc = ibm_is_vpc.testacc_vpc.id
name = "routTabletest"
route_direct_link_ingress = true
route_transit_gateway_ingress = false
route_vpc_zone_ingress = false
}
```

```terraform
resource "ibm_is_vpc_routing_table_route" "test_ibm_is_vpc_routing_table_route" {
vpc = ""
routing_table = ""
vpc = ibm_is_vpc.testacc_vpc.id
routing_table = ibm_is_vpc_routing_table.test_ibm_is_vpc_routing_table.routing_table
zone = "us-south-1"
name = "custom-route-2"
destination = "192.168.4.0/24"
action = "deliver"
next_hop = ibm_is_vpn_gateway_connection.VPNGatewayConnection.gateway_connection
next_hop = ibm_is_vpn_gateway_connection.VPNGatewayConnection.gateway_connection // Example value "10.0.0.4"
}
```

## Argument reference
Expand Down

0 comments on commit fe1e3b2

Please sign in to comment.