Moving Metabase off AWS Elastic Beanstalk

A planned move off Elastic Beanstalk keeps your Metabase content, the RDS application database and your users' access intact. This page explains what maps cleanly, the documented steps and what drives effort.

On this page

Moving Metabase off Elastic Beanstalk: what the move involves

A platform team that runs Metabase on Elastic Beanstalk with an RDS application database can move it onto infrastructure it controls by separating the database from the Beanstalk environment, taking a snapshot, and restoring Metabase onto Docker, ECS or another host. The work is mostly about preserving the application database, which holds saved questions, dashboards, users, groups, permissions and connection settings, and about making sure the new host runs with the same encryption key and environment variables. The documented path from Metabase's Elastic Beanstalk guidance has four steps: notify users, decouple the RDS application database from the Beanstalk deployment, take a snapshot, then terminate the environment with a snapshot and restore it. Effort depends on the Metabase version, whether the deployment uses the open source image or the Pro or Enterprise build, how much SSO is configured, and how many data sources and messaging integrations need repointing.

Start by confirming three facts with your own environment before scheduling a window. First, record the exact image tag in Dockerrun.aws.json; the Elastic Beanstalk guidance recommends a specific version tag rather than :latest, so the running version is the version you must match on the new host. Second, confirm the edition: Pro and Enterprise deployments use the metabase/metabase-enterprise repository, and the new host must run the same edition to keep license activation working. Third, list every setting that Elastic Beanstalk injects as environment variables, including the encryption secret key, because Metabase cannot read encrypted database connection details without it. Losing that key after restore is the most common way a migration silently breaks saved database connections.

Plan for the risks that sit outside the database. The new host needs its own load balancer or reverse proxy, TLS certificate, DNS record and outbound network paths to the data warehouses and identity provider, so these change at cutover and should be tested in advance. Any SSO configuration, email settings and embedded analytics that point to the old URL need updating. Keep the RDS snapshot until the restored instance has been verified against a sample of dashboards, queries and user logins. Ask your team or DeployOpen to confirm which of these dependencies apply to your deployment before the cutover plan is written.

What maps cleanly from Elastic Beanstalk and what does not

This table compares the Elastic Beanstalk pieces of a Metabase deployment with their equivalents on Docker, ECS or another host. Read the reconfiguration column first, because those items must be changed by hand and are where a move usually stalls.

ComponentElastic BeanstalkDocker, ECS or another host
Application runtimeEnvironment running the image named in Dockerrun.aws.jsonContainer or JAR started by your orchestrator or service manager, pinned to the same version
Image sourcePinned tag, often metabase/metabase-enterprise for Pro or EnterpriseReconfiguration: confirm whether you run the open source image or the enterprise image, and match the version exactly
Application databaseRDS instance decoupled from the environment and kept after terminationReconfiguration: repoint the connection to the same RDS instance or a restored PostgreSQL database, then verify connectivity
Environment variablesSet in the Beanstalk console or configuration filesCarried over to your runtime, including the encryption key and database settings, which must match the original values
Load balancer and TLSManaged by the Beanstalk load balancer and certificate settingsReconfiguration: rebuild with your own load balancer or reverse proxy and certificate, then retest HTTPS redirects
Instance profile and AWS accessIAM role attached to the environment instancesReconfiguration: replace with the role or credentials your new host uses to reach RDS and secrets
SSO and DNSHostname and identity provider callback set to the Beanstalk endpointReconfiguration: update the site URL, DNS record and identity provider redirect URLs before users sign in
Secrets and networkingSecurity groups and parameters wired to the environmentReconfiguration: recreate security group rules, network access to RDS and any secret store references

Documented tools and export paths for the move

Metabase documents a few specific routes for leaving Elastic Beanstalk and moving the application database. Each one moves a different part of the instance, so the cards below separate what each tool carries from what you must rebuild or carry over yourself.

Beanstalk decoupling and snapshot path

The Metabase Elastic Beanstalk docs describe detaching the RDS application database from the Beanstalk deployment, taking a snapshot, terminating the environment with a snapshot, and restoring from it. Notify users before you start, since the instance is unavailable during the cutover. Confirm the exact sequence, and whether the snapshot retains the RDS instance or only its data, against the official docs and your own environment.

Beanstalk docs

Pinned image version in Dockerrun.aws.json

The Beanstalk docs ask you to set a specific Metabase image version in Dockerrun.aws.json instead of :latest. Record the exact running version before you change anything, because the new host must start on the same version that last wrote the application database. Confirm the pinned tag format with the current Metabase Docker documentation before you use it.

Enterprise image repository for paid plans

For Pro or Enterprise instances, the Beanstalk docs direct you to the metabase/metabase-enterprise image repository rather than the open source one. Using the wrong image on the new host can block license activation or leave paid features unavailable. Check which edition and license your current instance runs before you choose the image, and confirm the repository name against the current docs.

load-from-h2 only for H2 instances

The load-from-h2 command moves an embedded H2 application database into PostgreSQL or MySQL. It applies only if your instance still uses H2, which is unusual for a production Beanstalk deployment that normally runs on RDS. Run it with the same Metabase version that last updated the H2 file. Confirm your application database type before planning this step.

H2 migration docs

What the snapshot does not carry

A database snapshot holds application data, not everything the instance depends on. The encryption key, the environment variables set in the Beanstalk configuration, and active user sessions do not travel with the RDS snapshot. Without the original encryption key, encrypted database connection details can become unreadable. Inventory every variable and secret before terminating the environment, and confirm this list with the official configuration docs.

Application database docs

Sessions and post-move checks

Users sign in again after the move because sessions are not carried across hosts. Plan a post-move check of login, SSO, email, scheduled sends and database connections on the new host before you announce completion. Confirm the session behavior and the verification steps for your deployment with Metabase's operations documentation and your own test plan.

How to decouple the RDS application database safely

The application database is the core of this move. In a Metabase deployment it holds saved questions, dashboards, users, groups, permissions and instance settings, so the Beanstalk environment is largely a container for the JVM and its configuration while the RDS instance holds the work your teams have built. Decoupling means separating that database from the environment that currently owns it, so the data survives when the environment is removed. Metabase's Elastic Beanstalk guide describes this as notifying users, taking a snapshot of the RDS application database, terminating the environment with a snapshot, and restoring onto the new host. Treat the sequence as a runbook with a named owner for each step, not as a single console action.

Start by agreeing a maintenance window with users, because saved questions and dashboards are not writable during the cutover in a way you can rely on. Before taking any snapshot, record the Metabase version running in the environment, the exact image tag set in Dockerrun.aws.json, and the values of the environment properties, especially MB_ENCRYPTION_SECRET_KEY. Without that key, encrypted database connection details and stored credentials cannot be read by the new instance, even when the database restores correctly. Store the key in your secrets manager, not in the migration ticket. Confirm the snapshot options (retention, encryption key, tags, copy to another region if required) against your own AWS account standards, since those settings depend on your organization's policies and are not fixed by Metabase.

When you terminate the environment with a snapshot, verify the snapshot is available and restorable before deleting anything else, and keep the source RDS instance until the new Metabase has passed a login and a dashboard check. Decide whether the new host will run PostgreSQL on RDS, a managed database in another account, or a database you operate, because that choice affects network routes, credentials and backup ownership. Record who can read the snapshot and who may restore it, since the application database contains user and group records. Rehearsing the restore in a non-production account first is the cheapest way to find a missing key or a version mismatch.

Sequence: inventory, pilot, parallel run and cutover

The sequence moves a Beanstalk Metabase onto new hosting with a verified copy of the application database, a version match and a rollback path in place before any user is pointed at the new instance. Each phase ends with a check that tells you whether to move on.

  1. Inventory the Beanstalk environment

    Record the Metabase image tag and version from Dockerrun.aws.json, whether the deployment uses the open source image or the metabase/metabase-enterprise repository for Pro or Enterprise, every environment variable (including the encryption key and database connection settings), the SSO configuration, the RDS engine and version, and any databases Metabase connects to for analytics. Your team or DeployOpen can perform this with access to the Beanstalk console and the Metabase admin settings. It is done when the inventory is written down and a second person has reviewed it against the running environment.

  2. Confirm the target version and plan

    Pin the target host to the exact Metabase version and edition that the Beanstalk environment runs, using a specific image tag rather than latest. Confirm that the license and edition on the target match the source, and that every SSO or embedding feature in use is covered by your plan. It is done when the version, edition and license are recorded for both environments and match.

  3. Build the target host

    Provision the new host (Docker, ECS or another target you control) with the pinned image, the same encryption key and environment variables, and a PostgreSQL application database reachable from the new host. Keep the target off the public network until it is tested. It is done when the new instance starts cleanly against an empty application database and the administrator can log in.

  4. Restore a pilot copy of the snapshot

    Take the RDS snapshot as described in the Elastic Beanstalk migration steps, then restore it into the target application database on a pilot instance that no users can reach. Load it with the same Metabase version that created it. Check that the instance boots, runs its migrations without error, and shows the expected collections, dashboards, questions, users and groups. It is done when the pilot passes these checks and any errors are logged and resolved.

  5. Test SSO, connections and scheduled work on the pilot

    Sign in through each configured SSO method and confirm group mappings, check that every analytics data source connects and syncs, and verify that subscriptions, alerts and scheduled tasks are present but paused until cutover. Test email delivery from a test address. It is done when each sign-in path and data connection has been exercised and documented, with any gaps assigned an owner.

  6. Run both environments in parallel and compare content

    Keep Beanstalk serving users while the pilot runs in parallel. Compare content read-only: dashboard and question counts, collection structure, permission groups, and sample results from key questions against the source. Avoid writes on the pilot that would diverge from production. It is done when the comparison shows no unexplained differences, and the team has signed off on the parallel results.

  7. Cut over DNS with a rollback plan ready

    Before changing DNS, confirm the retained snapshot exists, the rollback steps are written, and the team knows how to point DNS back to Beanstalk. Notify users, put Beanstalk in read-only mode if your process allows, take a final snapshot, restore it to the target, and switch DNS. It is done when the new instance serves users, the SSO callback and outbound connections work, and the rollback path has been confirmed as still available.

  8. Decommission Beanstalk after a retained snapshot

    Keep the Beanstalk environment and its final snapshot for a retention period your organization sets, then terminate the environment and remove unused RDS resources. Record the retained snapshot location and deletion date in your change log. It is done when the change log records the retained snapshot, the terminated environment and the removal of any remaining resources.

What drives the effort and cost of the move

This table lists the factors that change how much work the move takes and who pays for it. Read each row as a question to answer about your own deployment before asking for a quote. The main takeaway is that the Metabase version, edition and number of connected systems usually matter more than the hosting target itself.

DriverWhy it changes effort or costWhat to confirm or ask for
Metabase versionVersions older than 40 need upgrades stepping release by release, each with an application database backup and migration run.Current running version, whether an upgrade is in scope, and the planned upgrade path.
Open source versus Pro or EnterprisePaid editions use the enterprise image and license activation, adding a configuration step and a licensing dependency.Edition in use, image repository, and who holds the license and renewal.
Data sources to repointEach warehouse or database connection needs network rules, credentials and a connection test on the new host.Count of connected databases, their network paths and who owns the firewall changes.
Identity providers and SSOSAML, OIDC, LDAP and SCIM settings reference callback URLs that change with the new hostname, and some need a Pro or Enterprise plan.Which sign-in methods are live, the callback URLs to update and who can change the identity provider.
SCIM and group syncGroup mappings and provisioning must be verified against the identity provider after cutover, which adds test time.Whether group sync is in use and who validates group membership after the move.
Custom embeddingEmbedded dashboards depend on signing secrets, allowed origins and the embedding host, so each embed is a separate check.Number of embeds, embedding method and the front-end teams that must retest them.
Target platform network and secretsDocker, ECS or another host each handle TLS, load balancing, environment variables and secret storage differently.Chosen target, how secrets are stored, the encryption key handling and the TLS and reverse proxy design.
Internal staff timeYour team pays in hours for the change window, user notice, testing and sign-off, which recurs with each stage.Named owners for database, DNS, identity and application testing, and their availability.
Cloud resourcesThe new host, database and snapshot storage are billed by your cloud provider while both environments run in parallel.Parallel run length, instance and storage sizing, and the snapshot retention you require.
Partner feesA partner charges under a written scope, usually as a fixed fee per agreed deliverable, with any changes priced in writing.Itemized scope, deliverables, acceptance tests, rollback steps and what a change request costs.

What usually goes wrong and how to prevent it

Most failed Elastic Beanstalk exits come from a small set of mistakes: a database restored onto the wrong version, a lost encryption key, users writing during the snapshot, and traffic still pointing at the old load balancer. Each risk below has a prevention step you can check before cutover.

Restoring onto a different version

A snapshot is only safe to load into a Metabase build that matches the version that last wrote it. If the new host runs a newer or older image than the old Beanstalk environment, startup can fail or the application database can be left in a state that is hard to recover. Record the exact version from the running environment before the snapshot, and deploy that same tag first. Confirm the version string matches before any data is loaded.

Upgrading Metabase docs

Losing the encryption key

Metabase encrypts stored database credentials and some settings with an encryption key held in its environment, not in the database snapshot. If the key is missing or changed on the new host, saved connections to your warehouses and SSO settings stop working even though the data restored correctly. Copy the key from the Beanstalk environment configuration into your secrets store before termination, then verify a warehouse connection on the new host before you call the migration complete.

Snapshot taken without notifying users

Users who save questions or dashboards between the snapshot and the cutover create changes that will not exist on the restored instance. The Beanstalk documentation calls for notifying users before the snapshot for this reason. Agree a freeze window with the analytics owners, announce it, and confirm the final snapshot time is after the last write. Plan the window with named owners, not a general notice.

SSO callbacks and DNS left on the old balancer

Identity providers hold registered redirect URLs, and internal DNS often points at the Elastic Beanstalk load balancer. After cutover, sign-in can fail for everyone, or traffic can keep reaching a terminated environment. List every SSO application, redirect URI, DNS record and firewall rule that references the old hostname, and update each one in a staging window. Test sign-in from a clean browser session on the new hostname.

Mutable latest image tags

Beanstalk configurations that reference :latest in Dockerrun.aws.json can pull a different image on the next environment rebuild, so the version you tested may not be the version you run. The Metabase docs advise pinning a specific image version. Pin the tag on the new host, record it in your change record, and reject deployments that reference latest in your infrastructure code.

Beanstalk docs

No tested rollback path

If the new host fails after users have started writing to it, the only clean way back is to keep the Beanstalk environment or a restorable snapshot until the new deployment is accepted. Metabase recommends restoring a pre-change application database backup as the preferred rollback. Rehearse the restore into a separate database, confirm that the old snapshot still exists, and set a date after which the Beanstalk resources may be removed.

Rollback guidance

Questions buyers ask before moving Metabase off Beanstalk

What drives the cost of moving Metabase off Elastic Beanstalk?

The cost depends on how many environments you run, how the RDS application database is set up, and how much of the move your own team can absorb. If you do the work in-house, the cost is mainly engineer time for the snapshot, the restore, DNS and SSO changes, and testing. If a partner does it, you pay for the written scope, which should list each environment, the target host, the verification steps and any post-move support. Ask for the quote to separate one-time migration work from recurring items such as hosting, backups and retainers. Your Metabase license cost is separate: the Open Source edition is free, while Starter and Pro are listed on the Metabase pricing page at $100 per month ($90 per month billed yearly) and $575 per month ($517.50 per month billed yearly), with additional users at $6 (Starter) or $12 (Pro) per month.

How long does a Beanstalk to Docker or ECS move take?

Duration depends on the number of environments, how many users rely on the instance, whether the application database is already PostgreSQL, and how many integrations (SSO, email, data warehouses, embedded dashboards) must be repointed and tested. The Metabase docs describe the core sequence as notifying users, taking an RDS snapshot, terminating the environment with a snapshot and restoring onto the new host. Planning the freeze window and the test pass usually takes more time than the technical steps themselves. Ask any provider for a timeline built from your environment inventory rather than a generic estimate, and confirm the maintenance window your users can accept.

What does our team need to provide for the migration?

You need access to the AWS account that holds the Beanstalk environment, the RDS instance and its snapshots, and the Dockerrun.aws.json configuration. You also need the Metabase encryption key and environment variables, the current Metabase version, a list of connected data sources, and a named owner who can approve the cutover. Your identity, DNS and email administrators should be available for the switch day. Gather these before the work starts, because missing secrets or undocumented variables are a common cause of delays.

Can our own team move Metabase off Beanstalk without a partner?

Yes, if you have engineers comfortable with AWS, containers and PostgreSQL, and if the instance is small and well documented. The Metabase Elastic Beanstalk documentation describes the decoupling and restore sequence, and the work is mostly configuration and verification. Teams with several environments, Pro or Enterprise features, embedded analytics or strict change control often hand the planning and testing to a partner. Whichever route you choose, pin an exact image version in Dockerrun.aws.json rather than :latest, and use the metabase/metabase-enterprise repository if you run Pro or Enterprise.

Does moving off Beanstalk change our Metabase edition or license?

Moving the hosting does not change your edition by itself, but the image you deploy must match the plan you hold. Open Source runs from the open source image, while Pro and Enterprise features such as SSO, row and column level permissions, and usage analytics and auditing require the Pro or Enterprise plan. The Metabase pricing page states these features are not included in Open Source or Starter. Confirm your current plan and license key before cutover, and check that the target image is the enterprise build if you use a paid plan.

What is the rollback plan if the new host fails?

Keep the RDS snapshot taken before termination and do not delete the original environment until the new instance passes testing. If the restored instance fails, you can point DNS back to the Beanstalk environment only if it still exists, or restore the snapshot onto a fresh environment. For upgrades after the move, Metabase recommends restoring the pre-upgrade application database backup, or running the migrate down command with the newer JAR. Agree the rollback decision point and owner in writing before the freeze starts.

Could we lose dashboards, questions or user data during the move?

Data loss risk is low when the snapshot is taken after users are stopped from writing changes and the restore is verified. The main risks are a version mismatch between the snapshot and the new image, a missing encryption key (which makes stored database connection credentials unreadable), and writes made after the snapshot. Freeze edits during the window, record row counts or saved question counts before and after, and test logins, scheduled subscriptions and a sample of dashboards on the new host before users return.

What your team provides and what you receive

Your team has to supply the access and decisions that the migration cannot proceed without. Start with AWS account access for the people doing the work: read access to the Elastic Beanstalk environment, its Auto Scaling group and load balancer, and the RDS instance that holds the application database, plus permission to create and share RDS snapshots and to terminate the environment. Confirm who owns the account, who approves changes to production resources, and whether your security team needs to review the IAM roles before they are used. Name an owner for the SSO configuration, since the identity provider settings, group mappings and any SAML or OIDC application records must be recreated or repointed on the new host. You also need a maintenance window agreed with the people who use the dashboards, because users are notified and the environment is stopped during the cutover. Finally, name data owners for each area of content, such as key dashboards, collections and sensitive saved questions, who can confirm after restore that results match what they expect.

In return, DeployOpen delivers its work in writing. The migration runbook records each step in order, including the snapshot identifier, the Metabase image version pinned in the Dockerrun.aws.json file rather than :latest, the edition and repository in use, and the rollback point. The inventory lists the environment settings, environment variables, the encryption key reference, database connection details, the data warehouse connections and the SSO and email configuration, so nothing is inferred from memory. The restored environment is delivered on the target host you select, whether Docker, ECS or another platform, with the application database restored and checked. The validation report records what was tested, who signed off each check and which findings remain open. The decommission checklist covers the Beanstalk environment, the retained snapshot, the RDS instance, security groups and DNS records, so you can confirm when old resources are removed. Confirm with DeployOpen the format and acceptance criteria for each deliverable before work starts, since these are set in the written scope.

How the Beanstalk environment moves to the new host

The move starts with the running Beanstalk environment and its RDS application database. Users are told about the window, a snapshot is taken, and the environment is terminated with a final snapshot so the data is preserved before any change. The new host is then built from a pinned image and restored from the snapshot, so it can run alongside the old environment for checks. Confirm the parallel run passes login, SSO and saved questions before DNS points users at the new host. Decommission the Beanstalk environment only after that cutover is stable.

Phases from the Beanstalk environment to the new host and its final decommissioning.

How DeployOpen scopes and delivers the migration

DeployOpen plans, implements, backs up, documents and supports self-hosted open-source platforms inside the client's own infrastructure, so a move off Elastic Beanstalk is handled as a fixed-scope engagement with written deliverables. The work covers decoupling the RDS application database, restoring the instance onto the chosen host, and handing the result to your team with the evidence your reviewers will ask for.

How we scope

  • Inventory the current Beanstalk environment, including the Dockerrun.aws.json image tag, edition repository, and RDS application database settings
  • Agree the target host (Docker, ECS or another host) and who performs the cutover in writing before work starts
  • Confirm the user notification window, maintenance period, and rollback owner with your platform and security teams

How we build

  • Take and verify the RDS snapshot, then restore the application database onto the new target and confirm the Metabase version matches
  • Carry over the encryption key and environment variables, and repoint DNS, TLS, SSO settings and data warehouse firewall rules
  • Test sign-in, saved questions, dashboards, scheduled jobs and database connections on the new host before the old environment is terminated

How we hand over

  • Deliver runbooks covering the snapshot, restore, cutover, rollback and the pinned image version for future upgrades
  • Document the configuration, access model and backup routine so your operations team can run the instance without us
  • Walk your team through the cutover record and confirm the final state against the agreed written scope

How we support

  • Offer post-cutover support for issues found in the first operating period under the agreed scope
  • Provide ongoing support, upgrades and continuous testing as a retainer if your team wants DeployOpen to keep running the instance
  • Ask for a written quote tied to the scope above, which sets the deliverables, timeline and recurring support terms

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.