This repository was archived by the owner on Apr 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +29
-19
lines changed Expand file tree Collapse file tree 4 files changed +29
-19
lines changed Original file line number Diff line number Diff line change 1
1
module "bastion" {
2
- source = " ./ modules/bastion"
2
+ source = " modules/bastion"
3
3
instances = " 1"
4
4
region = " ${ var . region } "
5
5
compartment_ocid = " ${ var . compartment_ocid } "
@@ -17,7 +17,7 @@ module "bastion" {
17
17
}
18
18
19
19
module "utility" {
20
- source = " ./ modules/utility"
20
+ source = " modules/utility"
21
21
instances = " 1"
22
22
region = " ${ var . region } "
23
23
compartment_ocid = " ${ var . compartment_ocid } "
@@ -35,7 +35,7 @@ module "utility" {
35
35
}
36
36
37
37
module "master" {
38
- source = " ./ modules/master"
38
+ source = " modules/master"
39
39
instances = " ${ var . master_node_count } "
40
40
region = " ${ var . region } "
41
41
compartment_ocid = " ${ var . compartment_ocid } "
@@ -53,7 +53,7 @@ module "master" {
53
53
}
54
54
55
55
module "worker" {
56
- source = " ./ modules/worker"
56
+ source = " modules/worker"
57
57
instances = " ${ var . worker_node_count } "
58
58
region = " ${ var . region } "
59
59
compartment_ocid = " ${ var . compartment_ocid } "
Original file line number Diff line number Diff line change @@ -76,39 +76,48 @@ resource "oci_core_security_list" "PublicSubnet" {
76
76
}]
77
77
78
78
ingress_security_rules = [{
79
- { tcp_options = {
79
+ tcp_options {
80
80
" max" = 7180
81
81
" min" = 7180
82
82
}
83
+
83
84
protocol = " 6"
84
85
source = " 0.0.0.0/0"
85
- },
86
- {tcp_options = {
86
+ }]
87
+
88
+ ingress_security_rules = [{
89
+ tcp_options {
87
90
" max" = 18088
88
91
" min" = 18088
89
92
}
93
+
90
94
protocol = " 6"
91
95
source = " 0.0.0.0/0"
92
- },
93
- {tcp_options = {
96
+ }]
97
+
98
+ ingress_security_rules = [{
99
+ tcp_options {
94
100
" max" = 19888
95
101
" min" = 19888
96
102
}
103
+
97
104
protocol = " 6"
98
105
source = " 0.0.0.0/0"
99
- },
106
+ }]
100
107
101
- {tcp_options = {
108
+ ingress_security_rules = [{
109
+ tcp_options {
102
110
" max" = 22
103
111
" min" = 22
104
112
}
113
+
105
114
protocol = " 6"
106
115
source = " 0.0.0.0/0"
107
- },
108
- {
116
+ }]
117
+
118
+ ingress_security_rules = [{
109
119
protocol = " 6"
110
120
source = " ${ var . VPC-CIDR } "
111
- }
112
121
}]
113
122
}
114
123
@@ -120,8 +129,9 @@ resource "oci_core_security_list" "PrivateSubnet" {
120
129
egress_security_rules = [{
121
130
destination = " 0.0.0.0/0"
122
131
protocol = " 6"
123
- },
124
- {
132
+ }]
133
+
134
+ egress_security_rules = [{
125
135
protocol = " 6"
126
136
destination = " ${ var . VPC-CIDR } "
127
137
}]
@@ -143,7 +153,7 @@ resource "oci_core_security_list" "BastionSubnet" {
143
153
}]
144
154
145
155
ingress_security_rules = [{
146
- tcp_options = {
156
+ tcp_options {
147
157
" max" = 22
148
158
" min" = 22
149
159
}
Original file line number Diff line number Diff line change 1
1
module "network" {
2
- source = " ./ modules/network"
2
+ source = " modules/network"
3
3
tenancy_ocid = " ${ var . tenancy_ocid } "
4
4
compartment_ocid = " ${ var . compartment_ocid } "
5
5
availability_domain = " ${ var . availability_domain } "
Original file line number Diff line number Diff line change 1
- output "DEPLOYMENT_COMMAND " { value = " python ../scripts/deploy_on_oci.py -B -m ${ module . utility . public-ip } -d ${ module . worker . block-volume-count } -w ${ var . worker_instance_shape } " }
1
+ output "DEPLOYMENT COMMAND " { value = " python ../scripts/deploy_on_oci.py -B -m ${ module . utility . public-ip } -d ${ module . worker . block-volume-count } -w ${ var . worker_instance_shape } " }
You can’t perform that action at this time.
0 commit comments