@@ -4,20 +4,18 @@ locals {
4
4
workers_subnet_cidr = " 10.22.144.0/20"
5
5
cp_subnet_cidr = " 10.22.0.8/29"
6
6
vcn_cidr = " 10.22.0.0/16"
7
- my_count = 1
8
7
}
9
8
10
9
resource "oci_core_vcn" "oke_vcn" {
11
10
compartment_id = var. compartment_ocid
12
11
cidr_blocks = [local . vcn_cidr ]
13
12
display_name = " oke-${ random_string . deploy_id . result } -vcn"
14
13
dns_label = " oke"
15
- count = local. my_count
16
14
}
17
15
18
16
resource "oci_core_security_list" "pub_lb_sl" {
19
17
compartment_id = var. compartment_ocid
20
- vcn_id = oci_core_vcn. oke_vcn . 0 . id
18
+ vcn_id = oci_core_vcn. oke_vcn . id
21
19
ingress_security_rules {
22
20
protocol = " 6"
23
21
source = " 0.0.0.0/0"
@@ -43,7 +41,7 @@ resource "oci_core_security_list" "pub_lb_sl" {
43
41
resource "oci_core_subnet" "pub_lb_subnet" {
44
42
cidr_block = local. lb_subnet_cidr
45
43
compartment_id = var. compartment_ocid
46
- vcn_id = oci_core_vcn. oke_vcn . 0 . id
44
+ vcn_id = oci_core_vcn. oke_vcn . id
47
45
prohibit_public_ip_on_vnic = false
48
46
dns_label = " plb"
49
47
display_name = " pub_lb"
@@ -96,7 +94,7 @@ module "oke" {
96
94
pods = { create = " never" }
97
95
}
98
96
create_vcn = false
99
- vcn_id = oci_core_vcn. oke_vcn . 0 . id
97
+ vcn_id = oci_core_vcn. oke_vcn . id
100
98
# Network module - security
101
99
allow_node_port_access = true
102
100
allow_worker_internet_access = true
0 commit comments