Files
Filamenteka/terraform/outputs.tf

46 lines
1.4 KiB
HCL

output "app_id" {
description = "The ID of the Amplify app"
value = aws_amplify_app.filamenteka.id
}
output "app_url" {
description = "The default URL of the Amplify app"
value = "https://main.${aws_amplify_app.filamenteka.default_domain}"
}
output "dev_url" {
description = "The development branch URL"
value = "https://dev.${aws_amplify_app.filamenteka.default_domain}"
}
output "custom_domain_url" {
description = "The custom domain URL (if configured)"
value = var.domain_name != "" ? "https://${var.domain_name}" : "Not configured"
}
output "rds_endpoint" {
value = aws_db_instance.filamenteka.endpoint
description = "RDS instance endpoint"
}
output "rds_database_name" {
value = aws_db_instance.filamenteka.db_name
description = "Database name"
}
output "rds_username" {
value = aws_db_instance.filamenteka.username
description = "Database username"
}
output "rds_password_secret_arn" {
value = aws_secretsmanager_secret.db_credentials.arn
description = "ARN of the secret containing the database password"
}
output "database_url" {
value = "postgresql://${aws_db_instance.filamenteka.username}:[PASSWORD]@${aws_db_instance.filamenteka.endpoint}/${aws_db_instance.filamenteka.db_name}"
description = "Database connection URL (replace [PASSWORD] with actual password from Secrets Manager)"
sensitive = true
}