Welcome to our DevOps journey
Youqing Han
DevOps Engineer
Building reliable, scalable infrastructure
# AWS VPC Configuration
resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
tags = {
Name = "main-vpc"
Environment = "production"
}
}
resource "aws_subnet" "public" {
count = 2
vpc_id = aws_vpc.main.id
cidr_block = "10.0.${count.index + 1}.0/24"
availability_zone = data.aws_availability_zones.available.names[count.index]
map_public_ip_on_launch = true
tags = {
Name = "public-subnet-${count.index + 1}"
}
}
Notes: This example shows a basic VPC setup with public subnets across multiple AZs
Let’s discuss your DevOps challenges
Contact Information:
Building better infrastructure, one commit at a time