mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-10 01:40:17 +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>
23 lines
531 B
HCL
23 lines
531 B
HCL
variable "repository_names" {
|
|
description = "ECR repositories to create."
|
|
type = list(string)
|
|
default = [
|
|
"samosachaat-frontend",
|
|
"samosachaat-auth",
|
|
"samosachaat-chat-api",
|
|
"samosachaat-inference",
|
|
]
|
|
}
|
|
|
|
variable "force_delete" {
|
|
description = "Allow Terraform to destroy repositories even if they contain images (true for dev only)."
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
variable "tags" {
|
|
description = "Tags applied to every resource."
|
|
type = map(string)
|
|
default = {}
|
|
}
|