About sandboxes

A sandbox is a snapshot of the configuration state of your production tenant that is made available as a copy. Use a sandbox to safely make configuration changes, and then promote those changes back to your production tenant.

Allow sandbox administration

The Allow sandbox administration policy allows full access to all sandboxes in a tenant, including the ability view details for any sandbox, access any sandbox, promote changes from any sandbox to production, and delete any sandbox.

Assign this policy to one (or more) users who are assigned the DataGrid Operator policy so those users can manage all sandboxes that exist for your production tenant.

Important

A DataGrid Operator can create a sandbox, and then open that sandbox to make configuration changes. While working in a sandbox, a DataGrid Operator is assigned the DataGrid Administrator policy, which allows a user to have full access to the configuration state of the sandbox.

A user must be assigned the Allow sandbox administration policy option to do any of the following:

  1. View details for all sandboxes

  2. Access any sandbox

  3. Promote changes from a sandbox to production.

  4. Delete a sandbox from the Users and Activity page or by selecting the Promote and delete sandbox option while promoting changes from a sandbox.

About sandbox workflows

Amperity recommends using a sandbox to make all configuration state changes to your brand’s production tenant.

A sandbox is a copy of your production tenant in which you can safely make configuration changes, validate the results of those changes, and then from which you can safely promote those changes to production.

Use a sandbox to safely make configuration changes to Amperity.

All sandbox workflows follow the same pattern: create a sandbox, make iterative changes in the sandbox, review and validate all changes, promote validated changes to production.

Step 1.

Sandboxes are created from the Users & Admin page. Find the Sandboxes section, and then click Create sandbox.

Create a sandbox for your tenant.

To access a sandbox, from the list of sandboxes, select the    icon, and then from the list of options select Access sandbox.

Access a sandbox from the Users and Activity page.

Important

Data is not moved between production and a sandbox. Configuration state is copied from production, and then applied to the sandbox.

Step 3.

Sandbox configuration works the same way as it does in production with all of the same features and functionality. The main difference is that users in a sandbox are assigned the DataGrid Administrator policy, which gives them full access to the configuration state within the sandbox.

When you access a sandbox, it’ll look much the same as production, but with a different color scheme.

A sandbox has a slightly different color scheme and a unique banner.

Validate all configuration changes

Sandbox-specific notifications are built into the pages to help you identify the current configuration state of the sandbox as it relates to the configuration state in production. These appear near the top of each page.

A notification is shown when action is required to synchronize the configuration states between a sandbox and production. For example:

You will be notified when updates are available for your sandbox.

after which you can review the details for each update that may be available.

Review the details for each update.

A list of changes will appear under the Added, Changed, or Removed sections. Click the name of the update to learn more about the differences between the configuration states of your sandbox and production.

Review the list of Added, Changed, and/or Removed configuration state changes. Click the name of the added, changed, or removed object to review the details for the configuration state change.

Resolve validation issues, as necessary.

Review the details for each update.
Step 3.

When the sandbox is ready to be promoted, click Promote. Enter a merge message for this set of configuration state changes.

Review the details for each update.

Best practices

Amperity recommends the following patterns when working with sandboxes:

Continuous validation

As you make changes within a sandbox, Amperity will continuously run validations against those changes. If an issue is discovered a notification will appear along with a link to learn more about the validation issue and the steps that may be required to resolve it. You should fix validation issues as they arise to keep your sandbox ready to be promoted to production.

Data across environments

Data is not moved between your production environment and a sandbox environment. Only the configuration state is copied to the sandbox environment and only changes to the configuration state are copied back to your production environment.

For example, if you use a sandbox to add the components required by a new data source, such as a courier, a feed, along with a custom domain table in which semantic tags are applied, after promoting those changes from a sandbox environment you will need to run the courier to pull the data to your production environment.

Delete sandbox on promote

You can automatically delete a sandbox using the Promote and delete sandbox option when promoting changes from a sandbox to production.

Run partial workflows

Each workflow should be validated before promoting changes to production using a partial workflow.

  • A partial workflow pulls data from upstream sources to the sandbox, run Stitch, and then refresh databases.

  • A partial workflow does not run orchestrations or campaigns. This ensures that data in your sandbox is not inadvertently sent to any downstream workflows.

Short-lived sandboxes

A sandbox should be short-lived and should be used to make small, iterative changes within your tenant. After these changes are safely promoted to production, the sandbox should be deleted. Use a sandbox for each iterative change to ensure that you are never making large changes to production.

Examples of small, iterative changes

Each sandbox should exist only to support a specific set of planned configuration state changes.

  • A new data source in sandbox A

  • A new destination in sandbox B

  • Changes to a Profile API endpoint in sandbox C

  • A set of custom database tables in sandbox D

After these changes are promoted to production, the sandbox should be deleted.

How-tos

This section describes tasks related to working with sandboxes in Amperity:

Access a sandbox

A user who is assigned the Allow sandbox administration policy option can, in addition to opening sandboxes they have created, can also access sandboxes other users have created.

This process is similar to opening a sandbox, except the name of the link is Access sandbox and sandboxes that other users have created will not be available from the menu in the top-right of your tenant.

Add a sandbox

Sandboxes are created from the Users & Admin page.

To add a sandbox

  1. From the Users & Admin page, under Sandboxes, click Create sandbox.

  2. Each sandbox should be given a name that clearly identifies the type of configuration state change that will be made in that sandbox, along with an expanded description of those changes.

    Add a name and description for your sandbox.
  3. Click Create to generate the sandbox for your tenant.

Delete a sandbox

You can delete a sandbox from the list of sandboxes under Sandboxes on the Users & Admin page.

Tip

You can automatically delete a sandbox using the Promote and delete sandbox option when promoting changes from a sandbox to production.

To delete a sandbox

  1. From the Users & Admin page, under Sandboxes, from the list of sandboxes, select the    icon.

  2. From the the list of options select Delete.

  3. On the Delete sandbox window, enter the sandbox ID in the field to confirm that you want to delete the sandbox, and then click Delete.

Edit sandbox details

The name and description of a sandbox can be edited after it has been created.

To edit sandbox details

  1. From the Users & Admin page, under Sandboxes, from the list of sandboxes, select the    icon.

  2. From the the list of options select Details.

    The Sandbox details window appears with information about the sandbox.

  3. Click the Edit button and make your changes. When finished, click Save.

Open a sandbox

A sandbox is accessible from the Users and Activity page or from the drop-down menu in the top-right of your tenant.

To open a sandbox

  1. From the Users & Admin page, under Sandboxes, from the list of sandboxes, select the    icon.

  2. From the the list of options select Open sandbox.

    This will open the sandbox in a new page in your Web browser.

    Tip

    To open a sandbox in the same page, click the menu in the top-right of your tenant, and then from the drop-down list that appears, select a sandbox.

Promote changes

Validated changes within a sandbox can be promoted to production.

Tip

You can automatically delete a sandbox using the Promote and delete sandbox option when promoting changes from a sandbox to production.

To promote changes from a sandbox

  1. From the Users & Admin page, under Sandboxes, from the list of sandboxes, select the    icon, and then open a sandbox.

  2. From the sandbox, resolve all validation issues.

  3. Click the Promote button, and then specify if you want to delete the sandbox immediately after promoting your changes or if you want to only promote changes (and keep the sandbox).

  4. Click Promote.

Pull updates from production

The state of production can change independently of the state of a sandbox. For example, changes were promoted from a different sandbox that updated the schema of a database table.

A sandbox must contain the current state of production to ensure that all changes in the sandbox can be validated. A notification appears when updates are available to be pulled from production to your sandbox. This notification is similar to:

This sandbox is out of sync
8 updates to pull from production

This will open the Pull updates page, on which you can review all of the updates that will be pulled from production into your sandbox.

Pull updates from production to a sandbox.

To pull updates to a sandbox from production

  1. From the Users & Admin page, under Sandboxes, from the list of sandboxes, select the    icon, and then open a sandbox.

  2. Click the “Updates to pull from production” link in the sandbox notification banner.

  3. The Pull updates page opens. Review all of the updates that will be pulled to your sandbox.

  4. Click Pull.

Resolve validation issues

As you make changes within a sandbox, Amperity will run validations against those changes. A notification appears when validation issues are present in your sandbox with a link similar to:

This sandbox has errors blocking promotion

followed by the number of validation issues:

2 current errors to address

Click this link to open the Promote changes page, from which each validation issue will appear as a row in a list of validation issues.

Some validations passed, but there is a schema error.

In situations where there is a conflict between the state of the sandbox and production, that conflict must be resolved before any changes in production can be pulled into the tenant.

Tip

Sandbox validations only appear within sandboxes. Resolve all validation issues before promoting your changes to production.

Review changes

A series of validations are run against updates. These validations will notify you within the sandbox when the configuration states of production and sandbox conflict.

Most of the time you should receive a validation report that does not contain a list of conflicts, similar to:

All validations passed.

Occasionally, you will receive a validation report that shows one (or more) validation errors. For example, a schema mismatch between a custom domain table in production and a custom domain table in the sandbox:

Some validations passed, but there is a schema error.

If you receive a validation report with errors, investigate each error and work to resolve the underlying issue. It is possible that resolution must be done in the production tenant before pulling updates to the sandbox. It is also possible that the resolution is done in the sandbox. It depends on the error.

Restore changes

Changes that are promoted to production from a sandbox may be restored to a previous state. There are two approaches:

  1. In many situations you can use a sandbox workflow to quickly restore the state of production, especially when a sandbox was used to make small, iterative changes. First create a sandbox, and then make changes in that sandbox that returns your tenant to its previous state.

  1. In situations where this cannot be done using a sandbox workflow, please ask for assistance from your Amperity Support team.

    Important

    If Amperity Support restores your tenant all changes that were made to your tenant after the point in time to which your tenant will be restored will be lost. This includes changes made in production and changes that may have been promoted from other sandbox workflows.

View sandbox details

Sandbox details include the name of the sandbox, its tenant ID and URL, when it was created, when it was last updated, and which user in your tenant is the sandbox owner. You can edit some sandbox details.

To view sandbox details

  1. From the Users & Admin page, under Sandboxes, from the list of sandboxes, select the    icon.

  2. From the the list of options select Details.

    The Sandbox details window appears with information about the sandbox.

View validation details

All changes in a sandbox are validated automatically. Once the validation process is complete and there are no validation issues, you may promote changes in a sandbox to production.

When changes in a sandbox have validation issues

A notification appears when validation issues are present in your sandbox with a link similar to:

This sandbox has errors blocking promotion

Click this link to open the Promote changes page, from which each validation issue will appear as a row in a list of validation issues.

Some validations passed, but there is a schema error.

Important

You cannot promote changes in a sandbox to production until all validation issues are resolved.

To view validation details

  1. In a sandbox, click View errors. This opens the Promote changes page.

  2. From the list of validation errors, select the    icon, and then choose View details.

  3. The Sandbox resolutions dialog box opens. This dialog describes the cause of the validation issue, and then (if available) provides one (or more) steps you can use to resolve the validation issue.