Skip to content

Commit 78fb3b2

Browse files
committed
initial commit - split from terraform-oci-vcn module - rev.1
1 parent 8b037f4 commit 78fb3b2

File tree

8 files changed

+38
-22
lines changed

8 files changed

+38
-22
lines changed

docs/images/network_drg_basic.png

14.5 KB
Loading

docs/terraformoptions.adoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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`

examples/drg/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
This 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

examples/drg/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# Resources
55

66
module "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"

examples/rpc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In the remote region will be created:
2323

2424
This 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

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

2020
output "drg_all_attributes" {
2121
description = "all attributes of created drg"

terraform.tfvars.example

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,39 @@ region = "us-phoenix-1"
88
# general oci parameters
99

1010
compartment_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
1829
drg_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+
2142
create_rpc = false
2243
rpc_acceptor_id = null
2344
rpc_acceptor_region = null
2445

2546

26-
freeform_tags = {
27-
environment = "dev"
28-
}
29-
30-
defined_tags = {
31-
"Operations.CostCenter" = "42"
32-
}
33-
34-

variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ variable "drg_vcn_attachments" {
5858
default = null
5959
}
6060

61+
# rpc parameters
6162
variable "create_rpc" {
6263
description = "Whether to create Remote Peering Connection. If set to true, creates an RPC"
6364
type = bool

0 commit comments

Comments
 (0)