Edit a Deployment Script

You can edit or update deployment scripts that you have created in your project, but you cannot edit the scripts provided by the NCS system. If you want to modify a system-provided script, use the clone action, instead.

Prerequisite

  • The Project's wallet balance must be greater than 0. If not, learn how to top up the wallet.

  • There must be at least one user-created deployment script in the deployment script list.

Instructions

1. Go to the Deployment Scripts page

In the left-hand menu, click COMPUTE > Deployment Scripts.

2. Select the Edit menu

From the deployment script list, select the script you want to edit, then click the MORE > Edit button to open the "Edit Deployment Script" window.

3. Configure the Deployment Script's settings

On the edit deployment script page, you can modify the following details:

  • Name: The name of the script that will be displayed in the list and on the launch instance page.

  • Base Image: Select the image that will be used as the base for launching the instance before the script runs.

  • Min Disk: The minimum size of the volume required to boot this script. The default value is based on the selected base image, but it can be changed.

  • Script Type: There are two types of scripts:

  • Script: The script content, which must match the selected script type.

If the selected base image is deleted from the system, this deployment script will not appear on the launch instance page until you update the base image to one that exists in the system.

4. Review and confirm the edits to the Deployment Script

Carefully review all the details you have entered, then click the 'CONFIRM' button. The edited script will be updated in the deployment script list and as a source option on the launch instance page.

Editing a deployment script will not affect any instances that were previously launched using this script. The changes will only apply to instances launched from this point forward.

Last updated

Was this helpful?