Skip to content

Commit be5c8ac

Browse files
authored
feat: upgrade VCN module to 3.4.0 (#486)
* feat: upgrade VCN to 3.4.0
1 parent a2e3e34 commit be5c8ac

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

main.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
module "vcn" {
55
source = "oracle-terraform-modules/vcn/oci"
6-
version = "3.0.0"
6+
version = "3.4.0"
77

88
# general oci parameters
99
compartment_id = var.compartment_id
@@ -14,10 +14,7 @@ module "vcn" {
1414
create_nat_gateway = var.worker_type == "private" || var.create_operator == true || (var.load_balancers == "internal" || var.load_balancers == "both") ? true : false
1515
create_service_gateway = true
1616
nat_gateway_public_ip_id = var.nat_gateway_public_ip_id
17-
18-
# drg
19-
create_drg = var.create_drg
20-
drg_display_name = var.drg_display_name
17+
create_drg = var.create_drg
2118

2219
# lpgs
2320
local_peering_gateways = var.local_peering_gateways
@@ -33,8 +30,10 @@ module "vcn" {
3330
internet_gateway_route_rules = var.internet_gateway_route_rules
3431
nat_gateway_route_rules = var.nat_gateway_route_rules
3532

33+
3634
}
3735

36+
3837
module "bastion" {
3938
source = "oracle-terraform-modules/bastion/oci"
4039
version = "3.0.0"
@@ -153,6 +152,7 @@ module "bastionsvc" {
153152
count = var.create_bastion_service == true ? 1 : 0
154153
}
155154

155+
156156
# additional networking for oke
157157
module "network" {
158158
source = "./modules/network"
@@ -167,6 +167,7 @@ module "network" {
167167
subnets = var.subnets
168168
vcn_id = module.vcn.vcn_id
169169

170+
170171
# control plane endpoint parameters
171172
control_plane_type = var.control_plane_type
172173
control_plane_allowed_cidrs = var.control_plane_allowed_cidrs

modules/network/outputs.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ output "int_lb" {
1919
}
2020

2121
output "pub_lb" {
22-
value = var.load_balancers == "public" || var.load_balancers == "both" ? oci_core_network_security_group.pub_lb[0].id :""
22+
value = var.load_balancers == "public" || var.load_balancers == "both" ? oci_core_network_security_group.pub_lb[0].id : ""
2323
}
2424

2525
output "worker_nsg_id" {
2626
value = oci_core_network_security_group.workers.id
2727
}
2828

29+

modules/network/variables.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ variable "public_lb_allowed_ports" {
7171
type = list(any)
7272
}
7373

74+
variable "create_fss" {
75+
type = bool
76+
}
7477

7578
variable "create_fss" {
7679
type = bool

0 commit comments

Comments
 (0)