mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-14 11: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>
37 lines
948 B
HCL
37 lines
948 B
HCL
output "db_instance_endpoint" {
|
|
description = "Endpoint of the form host:port."
|
|
value = module.db.db_instance_endpoint
|
|
}
|
|
|
|
output "db_instance_address" {
|
|
description = "Hostname of the DB instance."
|
|
value = module.db.db_instance_address
|
|
}
|
|
|
|
output "db_instance_port" {
|
|
description = "Listening port."
|
|
value = module.db.db_instance_port
|
|
}
|
|
|
|
output "db_instance_name" {
|
|
description = "Initial database name."
|
|
value = module.db.db_instance_name
|
|
}
|
|
|
|
output "db_instance_username" {
|
|
description = "Master username."
|
|
value = module.db.db_instance_username
|
|
sensitive = true
|
|
}
|
|
|
|
output "db_password" {
|
|
description = "Generated master password (write to Secrets Manager / Parameter Store from your env config)."
|
|
value = random_password.db.result
|
|
sensitive = true
|
|
}
|
|
|
|
output "db_security_group_id" {
|
|
description = "Security group attached to the DB."
|
|
value = aws_security_group.db.id
|
|
}
|