A step-by-step guide to replacing Heroku add-ons on AWS: which AWS service takes over for Postgres, Redis, Scheduler, logging, email and file storage, what changes about the config vars they set, and a TypeScript version where the scheduler, queue and bucket are declared in code.

Heroku add-ons are the reason a small app on Heroku can have Postgres, Redis, a scheduler, log search and email without anyone opening a cloud console. Each add-on provisions a service and writes its connection details into a config var, and the app never sees the difference between them.
On AWS every one of those is a separate service with its own permissions, networking and bill. This guide maps the common add-ons to their AWS equivalents, then shows the same jobs declared in code.
The Heroku behavior is from the managing add-ons and Heroku Scheduler articles, checked on November 23, 2026. Most rows have a direct AWS counterpart, and the exceptions are where the migration takes time.
Open the app's Resources tab, or run heroku addons -a my-app, and write down every add-on with the config vars it created. Destroying an add-on unsets those variables and restarts the app, so the list doubles as a checklist of every place in the code that will break, found with a search for each variable name. Pay attention to attachments shared with another app, since the same Postgres or Redis may serve several services that all need a new connection string.
Postgres and Redis hold state, so they move first and with the most care, each with its own guide: Heroku Postgres to RDS and Heroku Redis to ElastiCache. The stateless add-ons, such as logging and email, can move any time afterwards, and moving them in a separate step keeps a failure easy to attribute. The one difference worth planning for is access: Heroku add-ons are reachable over the internet with credentials, while RDS and ElastiCache sit in private subnets, so every service that connects has to run inside the VPC.
Heroku Scheduler is the simplest to replace on AWS, and the one most often forgotten, since it lives in a dashboard and not in the repo. Each job becomes an EventBridge Scheduler schedule with a target (an ECS task, a Lambda function or an HTTP endpoint), an execution role and a retry policy. File storage add-ons become an S3 bucket with an IAM role in place of the keys in config vars. A queue add-on becomes SQS with a consumer, and its dead-letter queue and redrive policy are yours to configure.
Encore brings infrastructure from code, so the three jobs above become a CronJob, a Topic with a Subscription and a Bucket in the service that uses them. Per the AWS infrastructure docs, the deploy provisions SQS and SNS with dead-letter queues and S3 buckets in your account, while cron jobs run as signed requests from the Encore platform with no scheduler resources to manage. Postgres is declared the same way and runs on RDS.

Run in your terminal to get started locally.
A nightly export that used Heroku Scheduler, a CloudAMQP queue and a Bucketeer bucket, now one service:
// exports/exports.ts
import { api } from "encore.dev/api";
import { CronJob } from "encore.dev/cron";
import { Topic, Subscription } from "encore.dev/pubsub";
import { Bucket } from "encore.dev/storage/objects";
// Replaces the Bucketeer add-on and its access keys.
const exportFiles = new Bucket("nightly-exports", { versioned: false });
interface ExportJob {
day: string; // 2026-11-22
region: string;
}
// Replaces the CloudAMQP queue.
const exportJobs = new Topic<ExportJob>("export-jobs", { deliveryGuarantee: "at-least-once" });
// Replaces the Heroku Scheduler entry `node jobs/nightly-export.js`, daily at 02:00 UTC.
export const nightly = api(
{ expose: false, method: "POST", path: "/internal/nightly-export" },
async (): Promise<{ queued: number }> => {
const day = new Date(Date.now() - 86_400_000).toISOString().slice(0, 10);
const regions = ["eu", "us", "apac"];
for (const region of regions) await exportJobs.publish({ day, region });
return { queued: regions.length };
},
);
const _nightly = new CronJob("nightly-export", {
title: "Queue the nightly export",
schedule: "0 2 * * *",
endpoint: nightly,
});
new Subscription(exportJobs, "write-export", {
ackDeadline: "2m",
handler: async ({ day, region }) => {
const key = `${day}/${region}.csv`;
// A redelivered message finds the file and stops.
if (await exportFiles.exists(key)) return;
const csv = `region,day\n${region},${day}\n`;
await exportFiles.upload(key, Buffer.from(csv), { contentType: "text/csv" });
},
});
The schedule is in UTC, as Heroku's daily jobs were, and the endpoint is not exposed publicly, so only the platform's signed request can start it. Per the cron jobs docs, cron jobs do not run during local development, so you test by calling POST /internal/nightly-export yourself, and encore run starts Pub/Sub and a bucket locally for the rest. The Pub/Sub docs cover retry policies for the subscription.
To deploy, connect your AWS account as described in Connect your cloud account and push with git push encore. There are no DATABASE_URL-style variables to copy over for these three, since the code refers to the resources by name.
A coding agent asked to add a weekly job writes the endpoint and the CronJob in the same change and runs the endpoint locally, without an EventBridge schedule or a queue to create by hand.
Best fit: Apps leaving Heroku for their own AWS account that want the scheduler, queue and file storage add-ons replaced by code in the service that uses them.
Detach an add-on only after the AWS replacement has run for a full cycle of its normal use, and keep a final backup of anything with state. Remove the stateless ones first, since a mistake there is cheap to undo, and leave Postgres for last.
Each add-on category has an AWS service: Heroku Postgres becomes RDS, Heroku Key-Value Store becomes ElastiCache, Heroku Scheduler becomes EventBridge Scheduler, log drains become CloudWatch Logs, email add-ons become SES and file storage add-ons become S3. The part that does not map is the config var each add-on set, which you now create and inject yourself.
Heroku unsets the config vars the add-on created, such as DATABASE_URL or REDIS_URL, and restarts the app. On AWS the equivalents come from the new resources, so the connection strings have to be created and passed to the service as part of setting each one up.
Yes. EventBridge Scheduler is also more precise: Heroku Scheduler runs a one-off dyno every 10 minutes, hour or day, while EventBridge Scheduler accepts cron expressions with a time zone down to one minute.
With Encore you declare a CronJob that points at an API endpoint, and the Encore platform calls the endpoint on the schedule once deployed, with no scheduler resources in your AWS account. Cron jobs do not run locally, so test the endpoint by calling it directly.
Deploy to your cloud on AWS and Google Cloud
without managing infrastructure
Encore lets developers and agents define application infrastructure directly in code, then automatically provisions it from local development to production in your AWS or GCP account.