output "vpc_id" { description = "VPC ID" value = module.vpc.vpc_id } output "private_subnets" { description = "List of private subnet IDs" value = module.vpc.private_subnets } output "public_subnets" { description = "List of public subnet IDs" value = module.vpc.public_subnets } output "database_subnets" { description = "List of database subnet IDs" value = module.vpc.database_subnets } #------------------------------------------------------------------------------ # Database Outputs #------------------------------------------------------------------------------ output "rds_endpoint" { description = "RDS PostgreSQL endpoint" value = aws_db_instance.main.endpoint sensitive = true } output "rds_database_name" { description = "RDS database name" value = aws_db_instance.main.db_name } #------------------------------------------------------------------------------ # ElastiCache Outputs #------------------------------------------------------------------------------ output "redis_endpoint" { description = "ElastiCache Redis primary endpoint" value = aws_elasticache_replication_group.main.primary_endpoint_address sensitive = true } #------------------------------------------------------------------------------ # S3 Buckets #------------------------------------------------------------------------------ output "reports_bucket" { description = "S3 bucket for reports" value = aws_s3_bucket.reports.id } output "backups_bucket" { description = "S3 bucket for backups" value = aws_s3_bucket.backups.id } #------------------------------------------------------------------------------ # Load Balancer #------------------------------------------------------------------------------ output "alb_dns_name" { description = "DNS name of the Application Load Balancer" value = aws_lb.main.dns_name } output "alb_zone_id" { description = "Zone ID of the Application Load Balancer" value = aws_lb.main.zone_id } #------------------------------------------------------------------------------ # CloudFront #------------------------------------------------------------------------------ output "cloudfront_domain_name" { description = "CloudFront distribution domain name" value = aws_cloudfront_distribution.main.domain_name } output "cloudfront_distribution_id" { description = "CloudFront distribution ID" value = aws_cloudfront_distribution.main.id } #------------------------------------------------------------------------------ # ECS #------------------------------------------------------------------------------ output "ecs_cluster_name" { description = "ECS cluster name" value = aws_ecs_cluster.main.name } output "ecs_service_name" { description = "ECS service name" value = aws_ecs_service.backend.name } #------------------------------------------------------------------------------ # Secrets #------------------------------------------------------------------------------ output "secrets_manager_db_secret" { description = "Secrets Manager ARN for database password" value = aws_secretsmanager_secret.db_password.arn } output "secrets_manager_jwt_secret" { description = "Secrets Manager ARN for JWT secret" value = aws_secretsmanager_secret.jwt_secret.arn } #------------------------------------------------------------------------------ # WAF #------------------------------------------------------------------------------ output "waf_web_acl_arn" { description = "WAF Web ACL ARN" value = aws_wafv2_web_acl.main.arn } #------------------------------------------------------------------------------ # URLs #------------------------------------------------------------------------------ output "application_url" { description = "Application URL" value = "https://${var.domain_name}" }