Skip to content
LogoLogo

Transfer a project to another organization

An agency builds a project for a client, then hands it over. A team reorganizes and moves a project into another organization. A transfer moves a project and every one of its deployments (all environments, with their history) from one organization to another. Nothing is redeployed: the services keep running, their addresses stay the same, and the API keys and service principals the project owns keep working.

A transfer takes two people:

  1. An owner of the organization that has the project offers it.
  2. An owner of the destination organization accepts it.

The person offering does not need to belong to the destination organization.

Before you offer

  • The destination must already have your AWS accounts connected. For every AWS account the project's deployments run in, the destination organization needs an active connection to that account, either for the whole organization or for this project. Ask the destination's owner to run saaslayer aws connect first. Your own organization keeps its connection.
  • Billed projects cannot be transferred yet (PROJECT_BILLED).
  • Access from your organization ends. After the transfer, members of your organization lose their access to the project. Owners of the destination organization get it through their organization role. The offer lists who loses access.
  • One transfer of a project at a time (PROJECT_TRANSFER_PENDING).

1. Offer the project

In the console, open the project, choose Project settings, then Transfer to another organization. Enter the destination organization's ID and a reason the destination's owners will see.

Or with the CLI:

saaslayer project transfer offer <projectId> --to-org <orgId> --reason "Hand over to the client"
# --expires-in-hours N   how long the offer stays open (default 72, at most 168)

The project id defaults to your active project (saaslayer project use <id>). The offer prints the deployments that move and the members who lose access.

2. The destination accepts or declines

An owner of the destination organization sees the offer under Incoming projects on the console's projects page, or lists it:

saaslayer project transfer list --incoming
saaslayer project transfer get <projectId>
saaslayer project transfer accept <projectId>
saaslayer project transfer decline <projectId> --reason "Declining this transfer"

Accepting checks the destination side, and names what is missing when it refuses. The offer stays open, so you can fix the cause and accept again:

RefusalWhat to do
DESTINATION_ACCOUNT_NOT_CONNECTEDConnect the listed AWS accounts to your organization (saaslayer aws connect).
PROJECT_SLUG_TAKENA project in your organization already uses this project's slug.
DEPLOYMENT_QUOTA_EXCEEDEDThe project's deployments would take your organization over its deployment limit.
TRANSFER_SUBJECT_CHANGEDA deployment was added to or removed from the project after the offer: ask for a new offer.

Until the destination accepts, an owner of your organization can cancel the offer:

saaslayer project transfer cancel <projectId>

An offer nobody answers expires.

3. SaaSLayer executes the transfer

Execution is scheduled by SaaSLayer: an accepted transfer shows Accepted, waiting for execution until SaaSLayer runs it, in a maintenance window. The project and its deployments keep working while you wait. Either owner can still decline or cancel an accepted transfer before it starts.

While the transfer runs (Transferring), changes inside the project are refused, and so are changes to the membership, roles and grants of both organizations, with PROJECT_TRANSFER_IN_PROGRESS. Your app's sign-in and permission checks keep answering. Changes in your organizations' other projects are not affected. Retry refused changes after the transfer completes.

When it completes, the project appears in the destination organization with all its deployments, and the activity of both organizations records the move.