Deploying the Apex Platform to AWS

Choosing the runtime from the workload, the reference topology, the request and settlement paths, and everything a production deployment must verify.

  • Advanced
  • About 17 minutes
  • Includes an exercise and a knowledge check

The concept Start with the workload, not the service

The first release is a modular monolith with separate processing responsibilities, a React frontend, PostgreSQL, object storage and asynchronous processing. It does not automatically need Kubernetes. Choose the runtime from the workload, the team’s operating capability, availability needs and cost.

OptionFits when
Amazon ECS with AWS FargateYou want to run containers without managing servers; the Apex baseline
Amazon ECS on EC2You need control of instances, capacity or specialized hardware
Amazon EKSKubernetes features, ecosystem or company standards justify the extra operations
AWS LambdaShort, event-driven tasks such as some file steps; not every long-running component

The design Reference deployment topology

Finance users reach Route 53 and CloudFront, which serves the React frontend from S3. API calls go to a load balancer in public subnets, then to the API service on ECS Fargate in private application subnets, which uses RDS PostgreSQL in isolated data subnets with no public access. A bank file arrives through the approved upload into an encrypted, versioned S3 bucket; an event starts work on an SQS queue with a dead-letter queue, consumed by a worker service on ECS Fargate that writes to the database. Shared for every service: IAM roles with least privilege, Secrets Manager, KMS keys, CloudWatch and OpenTelemetry.
Public entry, private application, isolated data. Nothing reaches the database from outside.
PathSteps
A finance userHTTPS connection; authenticated API request; the load balancer routes it; the application checks identity and permissions; queries the database; responds; telemetry is recorded
A settlement fileArrives through the approved channel; stored in S3; an event or workflow starts; metadata and records validated; work queued; a worker processes records; results and status persisted; failures visible to operators

More than a container What a deployment must verify

  • Image identity (the digest) and runtime configuration.
  • Database connectivity, IAM permissions and network paths.
  • Health checks, logging and secrets retrieval.
  • Encryption, autoscaling limits, deployment strategy and rollback.

Practice Deploy to a production-like environment

Practical exercise

Exercise 03: the Apex AWS deployment

Deploy the application and explain how you avoided unnecessary complexity.

  1. Container registry, application runtime and private relational database.
  2. Object storage and asynchronous processing.
  3. Secrets management, application logs and health checks.
  4. HTTPS access.
Show a sample decision note
  • Runtime: ECS Fargate; EKS rejected because no Kubernetes feature is needed and the team would carry cluster upgrades.
  • Queue: SQS with a dead-letter queue; Kafka rejected for this volume.
  • Revisit when: another team standardizes on Kubernetes or the workload needs scheduling features Fargate lacks.

2 questions

Check your understanding

1. Why might ECS Fargate be a better first choice than EKS for Apex?
2. Where should the PostgreSQL database run?
Answer every question to submit.

What you can do now

  • Choose a runtime from the workload.
  • Draw a production topology with trust boundaries.
  • List what a deployment must verify.