nanochat/terraform/modules/rds/outputs.tf
Manmohan Sharma b381933c3b
feat(terraform): provision full AWS stack for samosaChaat (issue #4)
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>
2026-04-16 11:11:02 -07:00

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
}