File tree Expand file tree Collapse file tree 8 files changed +38
-22
lines changed
Expand file tree Collapse file tree 8 files changed +38
-22
lines changed Original file line number Diff line number Diff line change @@ -95,19 +95,21 @@ defined_tags = {
9595
9696|`drg_vcn_attachments`
9797|The OCID of the network resource attached to the DRG
98- |`string`
98+ |
99+ {
100+ "myvcn": {
101+ vcn_id : ""
102+ vcn_transit_routing_rt_id : ""
103+ drg_route_table_id : ""
104+ }
105+ }
99106|null
100107
101108|`create_rpc`
102109|Whether to create Remote Peering Connection. If set to true, creates an RPC
103110|`boolean`
104111|false
105112
106- |`create_service_gateway`
107- |Whether to create a service gateway to use Oracle Services.
108- |`boolean`
109- |false
110-
111113|`rpc_acceptor_id`
112114|the ID of the remote RPC"
113115|`string`
Original file line number Diff line number Diff line change 55
66This example illustrates how to use ` terraform-oci-drg ` module to create a DRG.
77
8+ This diagram illustrates what will be created by this example.
89
9- <!-- update provisioning info -->
10+ ![ diagram ] ( ../../docs/images/network_drg_basic.png )
1011
1112## Prerequisites
1213
Original file line number Diff line number Diff line change 44# Resources
55
66module "drg_hub" {
7- source = " github.com/oracle-terraform-modules/terraform-oci-drg"
8-
7+ # source = "github.com/oracle-terraform-modules/terraform-oci-drg"
8+ source = " ../../ "
99 # to use the terraform registry version comment the previous line and uncomment the 2 lines below
1010 # source = "oracle-terraform-modules/drg"
1111 # version = "specify_version_number"
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ In the remote region will be created:
2323
2424This diagram illustrates what will be created by this example.
2525
26- ![ diagram] ( ../../..// docs/images/network_remote_peering_basic.png ) )
26+ ![ diagram] ( ../../docs/images/network_remote_peering_basic.png )
2727
2828## Prerequisites
2929
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ output "drg_display_name" {
1515
1616
1717# Complete outputs for each resources with provider parity. Auto-updating.
18- # Usefull for module composition.
18+ # Useful for module composition.
1919
2020output "drg_all_attributes" {
2121 description = " all attributes of created drg"
Original file line number Diff line number Diff line change @@ -8,27 +8,39 @@ region = "us-phoenix-1"
88# general oci parameters
99
1010compartment_id = ""
11+ label_prefix = "none"
12+
13+ freeform_tags = {}
14+ defined_tags = {}
15+
16+ # freeform_tags = {
17+ # environment = "dev"
18+ # }
19+ #
20+ # defined_tags = {
21+ # "Operations.CostCenter" = "42"
22+ # }
1123
12- label_prefix = "none"
1324
1425# drg parameters
15- drg_display_name = drg
26+ drg_display_name = " drg"
1627
1728# vcns to be attached
1829drg_vcn_attachments = null
1930
31+ # drg_vcn_attachments = {
32+ # "myvcn": {
33+ # vcn_id : ""
34+ # vcn_transit_routing_rt_id : ""
35+ # drg_route_table_id : ""
36+ # }
37+ # }
38+
39+
2040# rpc parameters
41+
2142create_rpc = false
2243rpc_acceptor_id = null
2344rpc_acceptor_region = null
2445
2546
26- freeform_tags = {
27- environment = "dev"
28- }
29-
30- defined_tags = {
31- "Operations.CostCenter" = "42"
32- }
33-
34-
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ variable "drg_vcn_attachments" {
5858 default = null
5959}
6060
61+ # rpc parameters
6162variable "create_rpc" {
6263 description = " Whether to create Remote Peering Connection. If set to true, creates an RPC"
6364 type = bool
You can’t perform that action at this time.
0 commit comments