Skip to main content

Redis Application Guide

Redis is an in-memory data store used as a cache, database, and message broker.

Status: Available (not yet verified end to end)


Quick Reference​

PropertyValue
Application IDredis
CategoryDatabase
Default Imageredis:7-alpine
Application Port6379
Default CPU512 (Fargate)
Default Memory1024 MB (Fargate)
Default Instancet3.micro (EC2)
Health Check Path/
Health Check Grace300 seconds
Supports FargateYes
Supports EC2Yes
Supported Auth Modesnone
Database RequiredN/A

When to Use​

A containerized Redis instance is suited to development, testing, session storage, and caching.

For production, consider Amazon ElastiCache, which provides automatic failover, Multi-AZ deployment, read replicas, and managed patching.


Optional Ports​

PortProtocolDirectionFeature FlagDescription
16379TCPInboundenableClusterCluster Bus
26379TCPInboundenableSentinelSentinel

These flags only open security-group ports. CloudForge does not configure Redis Cluster or Sentinel.


Storage Configuration​

Container (Fargate)​

PropertyValue
Data Path/data
EFS Path/redis
Volume NameredisData
Container User999:999
EFS Permissions755

On EC2, data is stored under /var/lib/redis, and the server runs with --appendonly yes --requirepass <password>. The password is read from the Secrets Manager secret <stack name>/redis-password; create that secret before deploying, because the user data otherwise falls back to a fixed placeholder value. The Fargate task definition does not set a password.


Deployment Context Examples​

Development​

{
"stackName": "Redis-Dev",
"applicationId": "redis",
"applicationName": "Redis Dev",
"environment": "dev",

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

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

"authMode": "none",

"cpu": 512,
"memory": 1024,

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