Skip to content

Commit 79caffb

Browse files
committed
added optional nsg_ids for operator
Signed-off-by: Ali Mukadam <[email protected]>
1 parent d9bc9a5 commit 79caffb

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

compute.tf

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

security.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
7278
variable "vcn_id" {
7379
description = "The id of the VCN to use when creating the operator resources."
7480
type = string

0 commit comments

Comments
 (0)