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…