Menu

Day 98: A Route to a Table and a Requirement That Looked Like Filler
📰

Day 98: A Route to a Table and a Requirement That Looked Like Filler

DEV Community: terraform·Nnamdi Felix Ibe·1 day ago
#CyBzcOim
#devtoterraform#devto#dev#subnet#route
Long article (1785 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

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