Menu

1 / 5

Day 95: An Empty List That Is True and an Empty List That Is Not

DEV Community: terraform·Nnamdi Felix Ibe·7 days ago
#yySxnjil
#devtoterraform#devto#dev#group#egress
Long article (1831 words) — no AI summary yet.
Reading 0:00
15s threshold

Day 95 of DevOps, Day 45 of Azure. Both tasks printed an empty array, and the two mean opposite things. One is true, documented, and the reason the thing I built would not work. The other is false, and the resource it denied was running at the time.

One Terraform task, one Azure task. A security group, then a private AKS cluster. The tasks come from the KodeKloud Engineer platform.

Task 1: A security group in Terraform

Named xfusion-sg , described as "Security group for Nautilus App Servers", with inbound TCP 22 and TCP 80.

Step 1: The configuration

resource "aws_security_group" "xfusion_sg" { name = "xfusion-sg" description = "Security group for Nautilus App Servers"

ingress { from_port = 80 to_port = 80 protocol = "tcp" cidr_blocks = [ "0.0.0.0/0" ] }

ingress { from_port = 22 to_port = 22 protocol = "tcp" cidr_blocks = [ "0.0.0.0/0" ] } }

Enter fullscreen mode

Exit fullscreen mode

Step 2: Apply and read it back

Both ingress rules are present, and both the requested ports, name and description…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.