This page describes how to migrate your API Signer to a new host.
You might want to migrate your API Signer for a number of reasons—for example, moving from one cloud provider to another (such as Google Cloud to AWS), or moving from a (local setup)[https://docs.fordefi.com/developers/getting-started/set-up-an-api-signer/api-signer-docker] to a cloud host where the Signer can run permanently.
The steps below show you how to move your API Signer to its new home without re-registering your API User keys.
Turn off your currently running API Signer.
Remove your API Signer from your organization.
Click Settings > API Signer > Remove.

This action requires Admin access.
Refresh your browser and click Add API Signer to create a new instance.

Install the latest API Signer image on the new host by running the install commands described here.

Select Provision signer and copy the public key displayed in the terminal, including the
-----BEGIN PUBLIC KEY-----and-----END PUBLIC KEY-----lines.Go back to the API Signer creation wizard in Fordefi and paste the complete public key, including its header and footer. Then click Next.
Open the Fordefi mobile app. You should see an Add API Signer notification in your inbox.
Open the notification, review the public key, and click Activate. A success message should appear.
Refresh the browser and go to Settings. The new API Signer should appear as Activated.
Once you have successfully activated the new API Signer, run it as before:
docker run --rm --log-driver local --mount source=vol,destination=/storage -it fordefi.jfrog.io/fordefi/api-signer:latestTo run the Docker image as a headless process, issue the following command:
docker run --rm --log-driver local --mount source=vol,destination=/storage -d fordefi.jfrog.io/fordefi/api-signer:latest /api-signer run
- You do not need to re-register your API User public keys with the Signer. The registration is recorded on the Fordefi backend and will survive the migration.
- Any API-initiated transaction created during the migration will remain in
Pending signaturestate in the Fordefi transaction history. Signing will resume once the new API Signer is running.