View a markdown version of this page

End leases and eject accounts - Innovation Sandbox on AWS

End leases and eject accounts

Enable maintenance mode

Enable maintenance mode before you continue, so that managers and users cannot make API requests to the solution while you remove leases and accounts.

  1. Log in to the web UI as an Administrator.

  2. From the left pane, choose Settings, then choose the General tab.

  3. Under Maintenance Mode, turn on the Maintenance mode toggle, and choose Save.

  4. On the confirmation dialog, choose Turn on maintenance mode.

This will set the solution to maintenance mode. For more information, see Managing maintenance mode.

End all Active and Frozen leases

In this step, you terminate all active and frozen leases to stop incurring costs for these accounts.

  1. Log in to the web UI as an Administrator.

  2. From the left pane, choose Leases.

  3. On the Leases page, under Filter options, for status, filter for all Active and Frozen leases if not already selected by default.

  4. Under the Leases section, select all the leases matching the filter criteria.

  5. From the Actions dropdown, choose Terminate.

Note: If there are multiple pages of leases, repeat this for all leases that match the Active and Frozen filters.

This will terminate the leases and submit the accounts for cleanup. Depending on the number of accounts, cleanup may take a few minutes.

Eject accounts

In this step, you manually eject accounts that have been cleaned up, and are available for reuse.

  1. Log in to the web UI as an Administrator.

  2. From the left pane, choose Administration > Accounts. The Accounts page displays all the accounts currently in the account pool.

  3. Search for, and select all the accounts you want to eject from the account pool. You can eject any accounts from the account pool, except those in the Clean up state.

Note

Accounts in Quarantine might still contain resources that incur cost. Resolve any quarantined accounts before uninstalling the solution, either by retrying cleanup or ejecting them directly. For more information, refer to the Investigating quarantined accounts section.

  1. From the Actions dropdown, choose Eject account.

  2. On the confirmation dialog, choose Submit to confirm.

Note: If there are multiple pages for accounts, repeat this for all accounts you want to eject.

This will eject the accounts from the Account pool.

Move accounts out of the Organizational Unit

In this step, you move accounts out of the Organization Unit so that the StackSet can delete all the stack instances from the sandbox account.

  1. Log in to the Organization Management account, and navigate to AWS Organizations.

  2. From the left pane, choose AWS Accounts.

  3. From the organization structure tree, select the Innovation Sandbox OU, named <NAMESPACE>_InnovationSandboxAccountPool. For example, myisb_InnovationSandboxAccountPool.

  4. Confirm that there are no other accounts in the OUs other than the Exit or Entry OUs. If there are accounts in other Account Pool OUs, eject these accounts using steps described in the Eject accounts section.

  5. Move the accounts in Exit to outside the Innovation Sandbox OU, or the root OU.

This ensures that there are no accounts in the OU before you uninstall the stacks for the solution.