Infrastructure as Code Resources Coming Soon

This section will feature a comprehensive collection of Infrastructure as Code (IaC) templates, modules, and examples using tools like Terraform, Ansible, Pulumi, and CloudFormation. These resources will help you automate infrastructure provisioning and configuration across various cloud providers and on-premises environments.

Terraform

Infrastructure provisioning modules and templates for AWS, Azure, GCP, and multi-cloud environments.

AWS Azure GCP Modules

Ansible

Playbooks and roles for configuration management, application deployment, and system administration.

Playbooks Roles Config Deploy

Kubernetes

Helm charts, operators, and custom resources for managing applications and services in Kubernetes.

Helm CRDs Operators Templates

Multi-Tool Solutions

End-to-end infrastructure solutions combining multiple IaC tools for comprehensive deployments.

CI/CD Pipelines GitOps Templates
terraform/aws/vpc/main.tf
Coming Soon
module "vpc" {
  source  = "terraform-aws-modules/vpc/aws"
  version = "~> 4.0"

  name = "homelab-vpc"
  cidr = "10.0.0.0/16"

  azs             = ["us-west-2a", "us-west-2b", "us-west-2c"]
  private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
  public_subnets  = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]

  enable_nat_gateway = true
  single_nat_gateway = true
  enable_vpn_gateway = false

  # Enable DNS support and hostnames
  enable_dns_hostnames = true
  enable_dns_support   = true

  # Add tags to all resources
  tags = {
    Environment = "prod"
    Terraform   = "true"
    Project     = "homelab"
    Owner       = "infrastructure-team"
    ManagedBy   = "terraform"
  }

  # Add specific tags to subnets for load balancer configuration
  public_subnet_tags = {
    "kubernetes.io/role/elb" = "1"
    "Tier" = "public"
  }

  private_subnet_tags = {
    "kubernetes.io/role/internal-elb" = "1"
    "Tier" = "private"
  }
}