Skip to main content

PostgreSQL Application Guide

PostgreSQL is an advanced open-source relational database known for reliability, feature robustness, and performance.

Status: Available (Not Yet Tested)


Quick Reference

PropertyValue
Application IDpostgresql
CategoryDatabase
Default Imagepostgres:15
Application Port5432
Default CPU1024 (Fargate)
Default Memory2048 MB (Fargate)
Default Instancet3.small (EC2)
Health Check Path/
Health Check Grace300 seconds
Supports FargateYes
Supports EC2Yes
OIDC SupportNo
Database RequiredN/A (is a database)

When to Use

Use containerized PostgreSQL for:

  • Development and testing environments
  • Standalone database for single applications
  • Quick prototyping

For production, consider Amazon RDS PostgreSQL which provides:

  • Automated backups
  • Multi-AZ deployment
  • Read replicas
  • Managed patching

Storage Configuration

Container (Fargate)

PropertyValue
Data Path/var/lib/postgresql/data
EFS Path/postgresql
Volume NamepostgresData
Container User999:999
EFS Permissions700

Deployment Context Examples

Development

{
"stackName": "PostgreSQL-Dev",
"applicationId": "postgresql",
"applicationName": "PostgreSQL Dev",
"description": "PostgreSQL development database",
"environment": "development",

"runtime": "fargate",
"securityProfile": "dev",
"topology": "application-service",

"networkMode": "private-with-nat",
"region": "us-east-1",

"authMode": "none",

"cpu": 1024,
"memory": 2048,

"enableMonitoring": true,
"logRetentionDays": "7"
}

Cost estimate: ~$50/month


Environment Variables

VariableDescription
POSTGRES_PASSWORDGenerated from Secrets Manager
POSTGRES_DBcloudforge
POSTGRES_USERcloudforge

Compliance Considerations

Databases are CRITICAL RISK for compliance:

  • Store sensitive data (PII, PHI, payment data)
  • Require encryption at rest and in transit
  • Need audit logging for all access
  • Backup retention based on framework requirements

For production compliance workloads, use Amazon RDS with:

  • Multi-AZ deployment
  • Encryption enabled
  • Enhanced monitoring
  • Performance Insights
  • Automated backups