mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-09 09:20:04 +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>
38 lines
839 B
HCL
38 lines
839 B
HCL
variable "name" {
|
|
description = "Filesystem name (used in tags and the creation token)."
|
|
type = string
|
|
}
|
|
|
|
variable "vpc_id" {
|
|
description = "VPC the mount targets live in."
|
|
type = string
|
|
}
|
|
|
|
variable "private_subnet_ids" {
|
|
description = "Private subnets that get mount targets (one per AZ)."
|
|
type = list(string)
|
|
}
|
|
|
|
variable "eks_node_security_group_id" {
|
|
description = "Node SG allowed to mount the filesystem."
|
|
type = string
|
|
}
|
|
|
|
variable "performance_mode" {
|
|
description = "EFS performance mode."
|
|
type = string
|
|
default = "generalPurpose"
|
|
}
|
|
|
|
variable "throughput_mode" {
|
|
description = "EFS throughput mode."
|
|
type = string
|
|
default = "bursting"
|
|
}
|
|
|
|
variable "tags" {
|
|
description = "Tags applied to every resource."
|
|
type = map(string)
|
|
default = {}
|
|
}
|