File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ resource "oci_core_instance" "operator" {
1010 assign_public_ip = false
1111 display_name = " ${ var . label_prefix } -operator-vnic"
1212 hostname_label = " operator"
13+ nsg_ids = var. nsg_ids
1314 subnet_id = oci_core_subnet. operator [0 ]. id
1415 }
1516
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ resource "oci_core_security_list" "operator" {
1111 destination = local. anywhere
1212 }
1313
14-
15-
1614 ingress_security_rules {
1715 # allow ssh
1816 protocol = local. tcp_protocol
Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ variable "newbits" {
6969 type = number
7070}
7171
72+ variable "nsg_ids" {
73+ description = " Optional list of network security groups that the operator will be part of"
74+ type = list (string )
75+ default = []
76+ }
77+
7278variable "vcn_id" {
7379 description = " The id of the VCN to use when creating the operator resources."
7480 type = string
You can’t perform that action at this time.
0 commit comments