Sandbox presets

How to create, publish, and use sandbox presets.

Overview

Sandbox presets allow you to share a single sandbox configuration across multiple tracks. Sandbox presets can contain everything a regular sandbox might have. There are two main reasons to implement presets:

  • Standardization: Prevent sandbox configurations drift across multiple tracks.

  • Shared hot start pools: Have multiple tracks pull from the same hot start pool.

Create sandbox presets

You can create sandbox presets using the Web UI or the Instruqt CLI.

  1. Click Settings -> Sandbox presets.

  2. Click Create a new preset.

  3. Input a Name for the preset.

  4. Input a Description for the preset.

  5. Add hosts, cloud accounts, scripts, or secrets to the preset.

  6. Click Save to drafts.

Publish sandbox preset drafts

You can publish sandbox presets using the Web UI or the Instruqt CLI.

  1. Click Settings -> Sandbox presets.

  2. Click the Drafts tab

  3. Either click Publish on the chosen draft or click on the draft and then Save and publish on the next page.

  4. Enter a Commit message. (optional)

  5. Click Yes, publish.

Once a draft is published all tracks using the preset will be updated to use the latest published version and all shared hot-start pools will be drained and provisioned with the new published version.

Use sandbox presets

You can configure tracks to use presets using the Web UI or the Instruqt CLI.

  1. Click Settings -> Sandbox presets.

  2. Find your preset in the list of published presets. If a version has not been published take a look under the drafts tab.

  3. Note the slug under the name and version of the preset, prefixed with a forward slash.

  4. Next, click the track you want to use the preset in.

  5. Under Manage Track, click Configure sandbox.

  6. Click Use preset.

  7. Click Proceed and discard edits.

  8. Select the preset you want to use for the track and click Use selected preset.

Using a preset may affect existing challenge tabs and lifecycle scripts on the track as the sandbox resources and hosts may differ from the tracks previous config. Double check your work!

Update sandbox presets

You can update presets using the Web UI or the Instruqt CLI.

  1. Click Settings -> Sandbox presets.

  2. Under Published tab click Edit on the preset you would like to make changes too.

  3. Make the desired changes to the sandbox preset.

  4. Either click Save to drafts if the preset is not ready for use, or click Save and publish.

  5. Enter a Commit message. (optional)

  6. Click Yes, publish.

When using the pull command the latest version of a sandbox preset will be fetched. If there is a draft version the draft will be fetched, if there is no draft the published version will be fetched.

Last updated