Skip to main content

Account details

Services used

ECS

Clusters

Two ECS services:
  • staging-app-ec2 — staging environment
  • production-app-ec2 — production environment

Task configuration

Each task runs 3 containers in bridge networking mode:

IAM roles

Required capabilities:
  • ECR authentication (pulling images)
  • CloudWatch logging (awslogs driver)
  • S3 environment file loading
  • Task IAM role assumption

ECR

Images

Tagging strategy

Examples:
  • tutorbloc.app:production
  • tutorbloc.app:staging-42

S3

Bucket: tutorbloc-app

Environment file loading

ECS tasks load .env from S3 at startup:

CloudWatch

Log groups

Log configuration

Each container (app, nginx, blackbox) has its own log stream within the group.

Application logging

Laravel logs are configured in config/logging.php:
In Docker/ECS, stderr output is captured by CloudWatch. For production debugging, check both CloudWatch logs and the Laravel log files (if the storage volume persists).