Skip to content

Commit 1797d77

Browse files
committed
Fix missing LB rule
1 parent 9ae85de commit 1797d77

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

deploy/devops/tf-env/oke.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,5 @@ resource "null_resource" "add_sec_rules_lb" {
120120
}
121121

122122
depends_on = [module.oke]
123-
count = 0
124123
}
125124

deploy/devops/tf-env/pub_lb_sec.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
#!/bin/bash
22

3+
# shellcheck disable=SC2155
4+
export SEC_LIST_ID=$(oci network subnet get --subnet-id $PUB_LB_SUBNET_ID --query 'data."security-list-ids"[0]' --raw-output)
5+
6+
oci network security-list update --security-list-id $SEC_LIST_ID --egress-security-rules '[{"destination": "10.22.144.0/20", "protocol": "6", "isStateless": false, "tcpOptions": {"destinationPortRange": {"max": 10256, "min": 10256}}}]' --force

0 commit comments

Comments
 (0)