mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-16 12:47:34 +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>
15 lines
532 B
HCL
15 lines
532 B
HCL
output "repository_urls" {
|
|
description = "Map of repository name → registry URL (used by CI/CD `docker push`)."
|
|
value = { for name, repo in aws_ecr_repository.this : name => repo.repository_url }
|
|
}
|
|
|
|
output "repository_arns" {
|
|
description = "Map of repository name → ARN."
|
|
value = { for name, repo in aws_ecr_repository.this : name => repo.arn }
|
|
}
|
|
|
|
output "registry_id" {
|
|
description = "Account ID hosting the registry (same for all repos)."
|
|
value = values(aws_ecr_repository.this)[0].registry_id
|
|
}
|