Heroku to AWS Migration Assessment

Migration Decision Summary

Go, with conditions

Execution shape: Full cutover: one migration window ยท Complexity: small

Recommendation: Migrate to AWS on the Optimized pricing scenario as a full cutover in one migration window, once the traffic pattern is confirmed.

Confidence: medium โ€” full basis in What This Assessment Rests On.

AWS estimate (Balanced)
Est. $210/mo
Your Heroku baseline
Not established โ€” no invoice or contract was supplied
Migration shape
Full cutover ยท small complexity
๐Ÿ’ก Review AWS Activate credits tiers (Founders for self-funded startups, Portfolio for VC- or accelerator-backed ones) โ€” your funding stage was not confirmed in Clarify. Credits apply only to charges after approval and are not retroactive, so apply before terraform apply.

Timeline if you execute: full cutover in one migration window, small complexity โ€” stages and duration drivers in the Timeline section.

Migrate if

Stay entirely if

What would flip this

Next action: set the three contact emails in the Terraform variables, then follow the migration guide phase by phase.

Next steps

  1. Set the three contact emails (operations_email, billing_email, security_email) in terraform.tfvars before terraform plan โ€” checklist in MIGRATION_GUIDE.md โ€” nothing can be applied until then.
  2. Follow the MIGRATION_GUIDE.md phases in order: provision, migrate the database, cut over DNS, decommission.
  3. The Terraform ships with baseline.tf, the account security baseline (GuardDuty, CloudTrail, budget alerts); keep it unless your account already carries these controls.
  4. Apply for AWS Activate credits before terraform apply โ€” credits do not apply retroactively.

Share with your CFO

The one-paragraph version, ready to forward:

Current Stack Overview

2 Heroku resources on one app (acme-web) were mapped to AWS targets. No add-on is deferred.

Heroku resources and their AWS targets
Heroku appHeroku primitiveAWS target
acme-webweb formation (compute)Elastic Beanstalk โ€” t3.small, load-balanced, 1 to 2 instances
acme-webHeroku Postgres add-on (database)RDS PostgreSQL โ€” db.t4g.medium, Multi-AZ, 64 GB storage

Cost Estimate

Estimated monthly AWS cost by pricing tier
TierEst. Monthly AWSWhat the tier means here
PremiumEst. $210/moPremium equals Balanced because every line that can take a resilience uplift is already Multi-AZ in this design; there is no higher-availability variant to price.
BalancedEst. $210/moRight-sized on-demand pricing for the mapped design: one load-balanced Beanstalk environment and one Multi-AZ RDS instance.
OptimizedEst. $182/moBalanced with a Compute Savings Plan at 30% on the Beanstalk EC2 component only, 1-year no-upfront at the mid-point rate. The RDS line is unchanged: db.t4g.medium is Generation 4 and Database Savings Plans cover Generation 7 and newer instances only.
How to read the three tiers

Balanced is the figure to plan around. Premium shows what the same design costs with every resilience uplift applied โ€” here nothing is left to uplift, so it matches Balanced. Optimized shows Balanced after every eligible commitment discount; it is a ceiling on savings, not a second design.

No Heroku baseline was available for this run (no invoice or contract was supplied), so no side-by-side comparison is shown.

All figures are estimated monthly costs from cached AWS pricing (us-east-1), accuracy ยฑ5โ€“10%; they exclude data transfer, support plans and any Activate credits.

Cost Optimization

Pricing postures compared with the Balanced on-demand figure
PostureEst. monthlyvs BalancedWhat you commit to
Balanced on-demandEst. $210/moโ€”Nothing โ€” pay as you go
Balanced with Compute Savings PlansEst. $182/moโˆ’$28/mo1-year no-upfront hourly compute commitment
Balanced with Database Savings PlansEst. $210/moโ€” (not eligible)Nothing today โ€” db.t4g.medium is Generation 4 and Database Savings Plans cover Generation 7 and newer classes only; a db.m7g or db.r7g class would qualify
OptimizedEst. $182/moโˆ’$28/moEvery eligible commitment at its mid-point rate โ€” here the Compute Savings Plan only

Savings Plan savings are incremental to the Balanced on-demand figure and are not additive to the Optimized tier โ€” Optimized already includes them at the mid-point rate. The two rows that reach $182 are the same money counted once.

Which commitment fits

Line-level opportunities: Appendix B.1 โ€” Savings Plans and Reserved Instances.

Developer workflow: what stays, what changes, what you build

Developer workflow priority was rated important, not critical, in Clarify.

Developer workflow on Heroku today and on AWS
Heroku todayOn AWSStatusYour estate
git push heroku main + buildpacksCI builds a container image and deploys it to Elastic BeanstalkGenerated โ€” a GitHub Actions deploy workflow per app1 buildpack app, 0 already containerized; 1 on Beanstalk, 0 on Fargate/EKS
Pipelines and promoteEnvironments per stage with the same image promoted between them, approval-gatedGenerated โ€” an approval-gated promote.yml for the Beanstalk app; Build for the pipeline stages and environments themselves0 pipelines covering 0 apps
Review appsAn ephemeral environment per pull request, torn down on mergeBuild (or buy)not enabled
Config varsParameter Store / Secrets Manager, injected at deploy; config:set becomes one CLI callCovered โ€” one secrets binding per sensitive key is generated; you import the values8 config var keys across 1 app
heroku run / one-off dynosECS Exec or eb ssh; one-off tasks as a run-task callCovered โ€” different command for the targetโ€”
heroku logs --tailCloudWatch Logs live tailCoveredโ€”
Release phaseA pre-deploy job in the workflow that runs before traffic shiftsBuild1 release process type
Scheduler add-onsEventBridge SchedulerCovered โ€” schedules recreated by you; no Terraform is emitted for the schedules themselves0 scheduler add-ons mapped, 0 deferred
ps:scaleAutoscaling policy or one CLI callCoveredโ€”
Add-on marketplaceEach add-on becomes an AWS service wired by the generated TerraformNo equivalent to the marketplace itself1 add-on mapped (Postgres), 0 deferred

The rows marked Build are a platform layer your team owns: a deploy pipeline for Fargate, EKS and manual-deploy apps, a promote step for every app that gets no generated promote.yml, release steps, review-app automation, and a thin command wrapper. It is weeks of platform work, not months, and it is the same for every app.

Timeline

Shape: Full cutover: one migration window. This is a stage order with its duration drivers, not a staffed schedule and not a commitment.

  1. Provision the AWS environment from the generated Terraform (account baseline first, then the Beanstalk environment and the RDS instance).
  2. Migrate the database with dump and restore inside the migration window.
  3. Cut over every app in that same window with weighted Route 53 records, then decommission the Heroku app.

Duration drivers: a small estate (two services, none deferred), a Multi-AZ database migrated by dump and restore (20 GB estimated), and a maintenance window of Sunday at 04:00 UTC for database patching. The cutover and rollback procedure stays in MIGRATION_GUIDE.md.

Top Risks

Top risks, their impact and likelihood, and the mitigation for each
RiskImpactLikelihoodMitigation
The traffic pattern is not confirmed; a sustained always-on load would raise the compute estimate.HighMediumConfirm the dyno run pattern before cutover sizing; the Balanced figure assumes the current formation.
The estimate rests on cached pricing and may move within the ยฑ5โ€“10% accuracy band.MediumLowRe-run Estimate against live pricing before committing to a Savings Plan.

What This Assessment Rests On

Settings assumed by default and what each one changes in the design
SettingAssumed valueDesign consequence
Container registryAmazon ECRImages are published to one ECR repository (ecr.tf), which the Cloud Native Buildpacks path requires.
Containerization methodCloud Native Buildpacks (Heroku builder)Images are built from the same source with the Heroku builder; no Dockerfile is needed.
AWS Activate statusUnknownThe credits guidance stays neutral; no tier or amount is claimed.

Confidence: medium โ€” some material inputs assumed (the container registry, the containerization method and your Activate status are documented defaults). Region, compliance, availability, maintenance window, database HA, migration approach and method, DNS strategy, compute target, deploy method, log retention and cost posture were confirmed by you; the containerization status was extracted from your Heroku inventory.

Estimates based on cached AWS pricing (us-east-1 cache), accuracy ยฑ5โ€“10%.

Appendix

Appendix A โ€” Service Recommendations

One row per Heroku resource the design mapped. Sizes are the ones the generated Terraform provisions; you can change them in the variables before applying.

AWS service and size per Heroku resource
Heroku appSourceAWS serviceSize
acme-webweb formationElastic Beanstalk (Docker on 64bit Amazon Linux 2023)t3.small, load-balanced, 1 to 2 instances, rolling deployments
acme-webHeroku Postgres add-onRDS PostgreSQLdb.t4g.medium, Multi-AZ, 64 GB storage

Appendix B โ€” Cost Estimates

Estimated monthly whole dollars per line, from cached AWS pricing (us-east-1 cache), accuracy ยฑ5โ€“10%. No Heroku baseline was supplied, so there is no comparison column.

Estimated monthly cost per line and tier
LinePremiumBalancedOptimized
Elastic Beanstalk (EC2, ALB, LCU, EBS)Est. $115/moEst. $115/moEst. $87/mo
RDS PostgreSQL (db.t4g.medium Multi-AZ)Est. $95/moEst. $95/moEst. $95/mo
TotalEst. $210/moEst. $210/moEst. $182/mo

Premium equals Balanced on every line: the RDS rate already includes Multi-AZ and the Beanstalk EC2 rate has no availability-zone uplift. Optimized applies the Compute Savings Plan to the EC2 component only ($92 of the $115 Beanstalk line, a $28 discount) and leaves the RDS line at its Balanced figure: db.t4g.medium is Generation 4, and Database Savings Plans cover Generation 7 and newer instances only (a db.m7g or db.r7g class would qualify at 20%). Optimized is $210 โˆ’ $28 = $182 per month, $2,184 per year.

Appendix B.1 โ€” Savings Plans and Reserved Instances

Commitment-based optimization opportunities from the estimate
OptimizationTargetMonthly savingsCommitmentEffort
Compute Savings PlansElastic BeanstalkEst. $28/mo1-year no-upfrontlow
Database Savings PlansRDSNone โ€” db.t4g.medium is Generation 4; Database Savings Plans cover Generation 7 and newer classes only (db.m7g or db.r7g would qualify at 20%)1-year no-upfront, not applicable todayn/a

Activate credits don't cover RI/Savings Plan upfront costs โ€” they apply only to the ongoing discounted hourly rate.

Appendix E โ€” Generated Artifacts Catalog

Files Generate produced in the migration directory, one line each:

  • terraform/ โ€” main.tf (Beanstalk environment, RDS instance, networking), variables.tf, outputs.tf, security.tf, baseline.tf (account security baseline), ecr.tf (the image repository for the buildpack app), dns.tf (Route 53 weighted cutover records for www.acme.example), .gitignore, terraform.tfvars.example
  • MIGRATION_GUIDE.md โ€” the phase-by-phase cutover and rollback procedure, including the dump and restore steps and the three-contact-email checklist
  • README.md โ€” how to apply the pack
  • scripts/migrate-postgres.sh โ€” dump and restore of the Heroku Postgres add-on into RDS
  • .github/workflows/deploy-eb.yml and promote.yml โ€” the generated deploy and approval-gated promote workflows for the Beanstalk app
  • generation-warnings.json โ€” unsupported or skipped resources (none on this run)

Written after this report by the completion step: validation-report.json, heroku-estate.xlsx, plan.json (when their writers succeed).

Data artifacts this report was rendered from
ArtifactContents
preferences.jsonYour Clarify answers and their provenance
heroku-resource-inventory.jsonThe discovered Heroku estate
aws-design.jsonThe AWS mapping per resource
estimation-infra.jsonThe three cost tiers, the commitment opportunities and the recommendation

Appendix F โ€” Your Configuration

Funding stage not confirmed โ€” the Activate guidance is neutral; answer Q17 to see the tier that applies.
Your Clarify answers, where each came from, and what each one changes
QuestionYour choiceSourceDesign consequence
Which AWS region should your infrastructure be deployed to?us-east-1User answerEvery resource is created in this region; pricing is this region's.
Do you need to meet any compliance frameworks?NoneUser answerNo extra controls beyond the account baseline.
What availability level does your production workload need?Multi-AZUser answerRDS PostgreSQL with a Multi-AZ standby; applies to every data service.
When should AWS perform maintenance operations?Sunday at 04:00 UTCUser answerSets the RDS and Beanstalk maintenance window.
What should the primary environment be called in AWS resource naming and tags?acmeUser answerBecomes the Terraform environment variable (resource names and the Environment tag); never changes the architecture or the estimate.
How important is keeping the Heroku developer workflow?ImportantUser answerChanges what the report says must still be built; never changes the Terraform.
What high-availability configuration do you want for PostgreSQL on AWS?Multi-AZUser answerRDS PostgreSQL with Multi-AZ enabled.
How do you want to phase the migration?Full cutoverUser answerOne migration window; no interim database exposure section in the guide.
How would you like to migrate your PostgreSQL data to AWS?Dump and restoreUser answerSelects the dump and restore procedure in the guide.
How do you want to manage DNS for your migrated services?Route 53User answerGenerates dns.tf with weighted cutover records.
Which compute target should formations use?Elastic BeanstalkUser answerResolves the web formation to one Beanstalk environment.
How do you want to deploy code changes to Elastic Beanstalk?GitHub ActionsUser answerGenerates the deploy and promote workflows.
How long should application logs be retained?30 daysUser answerCloudWatch Logs retention of 30 days.
How do you want to handle alerting and on-call notifications?CloudWatch Alarms + SNSUser answerRecorded for your operations runbook; the generated Terraform emits no application alarms or on-call wiring for this answer (the account baseline's budget notifications are separate; see Appendix G), so the choice never moves the estimate.
How aggressively should we optimize for cost vs. operational safety?BalancedUser answerRight-sizing margin applied to the Balanced tier.
Is your application already containerized?Buildpack onlyExtracted from your Heroku inventoryAdds the Containerization Prerequisites section to the guide and asks how images are built.
Where should container images be stored for your containerized workloads?Amazon ECRDefault appliedImages are published to one ECR repository (ecr.tf), which the Cloud Native Buildpacks path requires.
How should buildpack apps get a container image?Cloud Native Buildpacks (Heroku builder)Default appliedpack build with the Heroku builder, ECR repositories, no Dockerfile.
Have you applied for AWS Activate credits?UnknownDefault appliedDrives only the credits callout wording; never moves the estimate.

Appendix G โ€” Security Capabilities

The account baseline baseline.tf applies. The three contact emails must be set before terraform plan. Removing baseline.tf plus those three contact variables opts out.

Account baseline controls, what each does, and the threat it mitigates
ControlSettingWhat it doesThreat mitigated
Alternate contactsOperations, billing and security emailsRoutes AWS notices to a named personAn incident reaches nobody who can act
Password policy14 characters, reuse 24, maximum age 90 daysEnforces console password strength and rotationWeak console passwords
S3 public-access blockAccount-wideBlocks public bucket policies and ACLsAccidental public buckets
Default EBS encryptionEnabledEncrypts every new volume at restData exposure from a stolen volume
IAM Access AnalyzerAccount analyzerFlags resources shared outside the accountA policy or bucket becomes public
IMDSv2Required on Beanstalk instancesRequires a session token for instance metadataCredential theft through server-side request forgery
CloudTrail30-day retentionRecords every API callWho changed what
Monthly budgetAlerts at 80% and 100%Emails billing when spend crosses the thresholdsBill shock
GuardDutyEnabledDetects unusual API activity and compromised instancesCredential theft and resource hijacking

Appendix I โ€” Assumptions, Exclusions, and Validation

Pricing provenance. Estimates based on cached AWS pricing (us-east-1 cache), accuracy ยฑ5โ€“10%. The estimate carries no measured, assumed and unknown lists; the confidence line in What This Assessment Rests On stands in for them.

Exclusions. Data transfer, AWS Support plans, Activate credits and the people cost of the platform layer the Developer workflow section describes are not priced. No Heroku baseline was available, so no saving is stated.

Design and generation warnings. None.

Terraform validation. This report is written before the Terraform is validated; see the validation report the completion step writes.

Appendix J โ€” Glossary

Terms used in this report
TermMeaning
Estimated monthly run rateWhat the AWS resources are expected to cost per month at list price, before credits. It is not the full ownership cost: staffing, tooling and operating labor are not priced in this report.
Balanced / Premium / OptimizedThe three pricing tiers: right-sized on-demand; the same design with every resilience uplift applied; Balanced with every eligible commitment at its mid-point rate.
Savings PlanA one- or three-year hourly spend commitment in exchange for a lower rate on compute or database usage.
Multi-AZA database with a synchronous standby in a second availability zone; the standby takes over on failure.
Elastic BeanstalkThe managed service that runs the web formation's container behind a load balancer and handles deployments.
Cloud Native BuildpacksThe tooling that turns the buildpack app's source into a container image with the Heroku builder, without a Dockerfile.
GuardDutyThe AWS threat-detection service the account baseline enables.