Day 98 of DevOps, Day 48 of Azure. In both tasks, the property that decides everything lives somewhere other than the obvious place.
The instance is private because of a route table that does not appear anywhere in my configuration. The container works because of a requirement that reads like padding in the task description.
One Terraform task, one Azure task. An EC2 instance in a private subnet, then a containerised app pulling its config from blob storage. The tasks come from the KodeKloud Engineer platform.
Task 1: An EC2 instance in a private subnet
A VPC, a private subnet, a security group that allows traffic only within the VPC CIDR, and a t2.micro instance in that subnet.
Step 1: Variables first
variable "KKE_VPC_CIDR" { default = "10.0.0.0/16" } variable "KKE_SUBNET_CIDR" { default = "10.0.1.0/24" }
Enter fullscreen mode
Exit fullscreen mode
Worth one line on why this matters beyond ticking the requirement.…