Upgrading from v1.2
Updated · 5 min read
The installer upgrades a v1.2.x installation to v1.3.1 in one guided run. It backs up your installation, moves sign-in to Amazon Cognito while keeping IAM Identity Center as your users' identity source, and gives active leases their new lease roles. If something goes wrong, you can roll back.
What changes for your users#
Sign-in: users keep signing in with their IAM Identity Center credentials. Behind the scenes, Identity Center becomes a SAML identity provider for Cognito. Users can sign in from the Sandbox Studio sign-in page or from a new Sandbox Studio - Cognito tile in the IAM Identity Center access portal. Everyone is signed out once during the upgrade.
Roles: members of your Sandbox Studio administrator, manager and user groups in Identity Center keep their role. Role mapping moves into the app, where administrators can change it later (see Identity providers in the Administrator Guide).
Opening accounts: users no longer open sandbox accounts through Identity Center permission sets. Each active lease gets its own IAM role, and users open the console or get CLI credentials from Sandbox Studio as before.
No passwords to reset: nobody is asked to create a password or use Forgot password. Email sign-in stays off until an administrator turns it on in the app.
What happens to your data, accounts and leases#
Item | After the upgrade |
|---|---|
Sandbox accounts | Unchanged. They stay in their OUs. |
Active leases | Keep running. Each gets a lease role with the permissions from its template. |
Suspended leases | Get their lease role when they are resumed. |
Leases whose template has no permissions | Skipped and listed by the installer. Add permissions to the template, then suspend and resume each lease. |
Account templates | Their Identity Center permission sets are converted into account permissions on the template. |
Users and groups | Groups used by templates and events, and users in the role groups, are created in Sandbox Studio. Other users are added the first time they sign in. |
Old permission sets | Deleted after a successful upgrade, unless you choose to keep them. The administrator permission set ( |
Old Identity Center application | Disabled, not deleted, so that a rollback works. |
| Left in place in the management account. |
Before you upgrade#
Read the release notes for v1.3.0 and v1.3.1.
Schedule a maintenance window of about 1–2 hours and tell your users. Avoid running events during the upgrade.
Run the installer in the same account and region as your v1.2 installation, with administrator access, including to IAM Identity Center.
If you use your own VPC, make sure the compute subnets have outbound internet access. The migration needs to reach Sandbox Studio's public address.
Check that every template used by active leases has account permissions (permission sets), or those leases won't get a role.
Make sure your session lasts at least 2–3 hours.
Run the upgrade#
To upgrade from v1.2:
Sign in to the organisation management account, switch to your home region and open CloudShell.
Run the installer:
bash <(curl -fsSL https://dist.sandboxstudiosoftware.com/install.sh)The installer finds your installation and shows that
SandboxStudio-Cognitowill be added. Confirm the upgrade and review your settings:
Do you want to upgrade to version 1.3.1? (Y/n)
Would you like to update any settings before upgrading? (y/N)Read the AUTHENTICATION UPDATE notice and answer Yes:
Ready to update your authentication setup? (y/N)This question defaults to No. Answering No cancels the upgrade (Upgrade cancelled: this version requires the authentication update.), because v1.3 can't run without it.
After the prerequisite checks, choose Yes, proceed with the upgrade.
What the installer does#
Backs up your installation before changing anything (see below). If the database snapshot fails, it asks whether to continue without it; the default is No.
Updates the stacks and adds
SandboxStudio-Cognito.Migrates sign-in: creates the Sandbox Studio - Cognito application in IAM Identity Center, assigns your existing groups to it, connects it to Cognito, and saves the role mappings in the app.
Migrates data: groups, user roles and template permissions move into Sandbox Studio.
Creates lease roles in each sandbox account with an active lease.
Disables the old Identity Center application.
Then it asks about clean-up:
Delete the N OLD permission set(s) listed above from IAM Identity Center? (recommended) (Y/n)
Remove the pre-migration database snapshot? (y/N)Keep the snapshot until you are sure you won't roll back. The run ends with Sandbox Studio has been upgraded successfully.
The installer does not add an email-code administrator during an upgrade: your administrators keep signing in through their Identity Center group.
The backup#
What | Where |
|---|---|
Database snapshot | Amazon RDS, hub account |
AppConfig settings (application, clean-up, email) | Your home directory, where you ran the installer |
Stack versions and parameters, the Identity Center application, permission sets, their assignments and the templates that used them |
|
After the upgrade#
Sign in as an administrator and check users, groups, templates and active leases.
Ask a user with an active lease to open their account from Sandbox Studio.
Review the role mappings for IAM Identity Center in the app. See Identity providers.
Optionally, turn on email sign-in or add other identity providers. See Sign-in and security settings.
Subscribe to security alerts. See Security monitoring and alerts.
Update any IAM Identity Center bookmarks or access portal instructions to use the new Sandbox Studio - Cognito tile.
If some active leases didn't get a role, the installer lists them. Re-run the installer, or suspend and resume the affected leases.
Rolling back#
If the upgrade fails or you need to go back to v1.2, run the restore from the same home directory as the upgrade:
bash <(curl -fsSL https://dist.sandboxstudiosoftware.com/install.sh) --restore-pre-migration --dry-runThe dry run shows every action without changing anything. Run it again without --dry-run to restore. The restore:
Lets you pick a backup, then asks
Proceed with the database restore?.Restores the database from the snapshot (about 20 minutes, with a short outage while the restored database replaces the current one).
Restores the AppConfig settings.
Offers to delete the Cognito stack so that sign-in returns fully to IAM Identity Center.
Recreates the old permission sets (with new ARNs) and points templates back at them.
Re-enables the old Identity Center application.
Offers to reinstall your previous version to finish the rollback (
Reinstall version X now to finish the rollback?). If you decline, run the installer later with--versionand your previous version, for example--version 1.2.1.
The lease roles and OIDC identity providers created in sandbox accounts are not removed by a rollback. They are harmless: v1.2 doesn't use them.
Common questions#
Can I switch my users to email sign-in instead of IAM Identity Center?#
Yes, after the upgrade. Administrators can turn on email sign-in and invite users in the app. Identity Center sign-in keeps working alongside it until you disable that provider.
Can I upgrade straight from v1.1 or earlier?#
The guided upgrade is designed for v1.2.x. Update to v1.2.1 first, or contact support@sandboxstudiosoftware.com.
Can I upgrade with a configuration file?#
Yes. With --config-file, the authentication update runs automatically. Old permission sets are deleted unless the file has "keep_old_permission_sets": true, and the database snapshot is never deleted. If the backup fails, the run stops before changing anything.



