INF-67Recommended
Keep an exit plan for each platform
Keep a written plan for the day your host, region, DNS or email provider fails or ends the contract. It moves the service to another host within 5 working days and lists each platform-only feature with its replacement.
How to do it
Cover each provider the service cannot run without, including DNS, email and payment providers. Keep a copy of the backups and an export of the DNS zone with another provider, so a closed account does not take them along. Treat the database, storage, queues and mail as attached services. Then moving one changes settings, not code, as the twelve-factor app describes. Platform-only features, such as special queues, edge functions or key-value stores, are the parts that tie you down. Wrap each behind one module of your own. Define the setup in code, as Define every resource in code says. Keep backups off the platform, as Back up off the machine says. When you leave a provider, get its deletion confirmation as Confirm deletion when a vendor leaves says. Try the move at a game day at least once a year. For model providers, Keep working when the provider fails covers the switch in code. People, suppliers and communication for a long outage are in the business continuity plan.
How to check
The exit plan names a second place to run and lists every platform-only feature with a replacement. A DNS zone export and a backup copy sit with a second provider. At a game day in the last year, the service started on a second host from code and a backup and passed its smoke tests.
Sources
Related rules
- OPS-79 Write a business continuity plan in Operations and observability
- OPS-71 Run a game day every quarter in Operations and observability
- INF-88 Track cloud quotas before they block a scale-up in Infrastructure and environments
- INF-1 Define every resource in code in Infrastructure and environments
- OPS-45 Back up off the machine in Operations and observability
- CMP-20 Confirm deletion when a vendor leaves in Compliance and governance
- AIF-44 Keep working when the provider fails in AI features
- CMP-18 Rank vendors and check their evidence in Compliance and governance
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/infrastructure/hosting-platforms/platform-exit-plan">Agent Wranglers infrastructure and environments playbook</a>. In code you write, add a comment next to it with the same link.