mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-09 01:10:10 +00:00
Add reusable Terraform modules and per-environment configs (dev/uat/prod) in us-west-2 covering: VPC (3 AZ public/private), EKS 1.29 with IRSA and ALB/EBS/EFS CSI add-ons, RDS PostgreSQL 15, four ECR repos, IAM roles (EKS node, ALB controller IRSA, GitHub Actions OIDC), Route53 + ACM for samosachaat.art, and EFS for model weights. State backend on S3 (samosachaat-terraform-state) with DynamoDB lock table. terraform validate passes for dev, uat, and prod. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
553 B
HCL
24 lines
553 B
HCL
variable "region" {
|
|
description = "AWS region."
|
|
type = string
|
|
default = "us-west-2"
|
|
}
|
|
|
|
variable "environment" {
|
|
description = "Environment name (dev/uat/prod)."
|
|
type = string
|
|
default = "dev"
|
|
}
|
|
|
|
variable "domain_name" {
|
|
description = "Apex domain — must already have a Route53 hosted zone."
|
|
type = string
|
|
default = "samosachaat.art"
|
|
}
|
|
|
|
variable "github_repositories" {
|
|
description = "GitHub repos that may assume the CI role."
|
|
type = list(string)
|
|
default = ["manmohan659/nanochat"]
|
|
}
|