Deployment Script
A Deployment Script enhances the standard process of launching a Compute Instance from a basic OS image. It allows you to pre-install software and configure the instance automatically by running a script-like to-do list immediately after the instance has finished booting.
Advantages of Using Deployment Scripts
Automated Setup: Pre-install software and configure instances automatically, reducing manual setup time. This makes it easy to create templates for launching multiple, identically configured instances.
Cost Savings: Using a Deployment Script to define an instance's initial state is more cost-effective than storing a full Bootable Volume or Custom Image, as Deployment Scripts are free of charge.
Provided and Customizable: NIPA Cloud Space provides pre-made Deployment Scripts for popular applications, and you can also create your own.
Ideal Use Cases for Deployment Scripts
Instances with complex setup procedures.
Deploying numerous instances with the same configuration.
Implementing horizontal scaling, where capacity is increased by adding more instances rather than resizing existing ones.
Supported Deployment Script Types
NIPA Cloud Space supports two types of Deployment Scripts:
x-shellscript: A simple and easy-to-use script type for sending basic shell commands during the instance boot process. It is compatible with both Windows and Linux operating systems.
cloud-init: An open-source tool capable of more complex configurations than x-shellscript. It uses a specific script format (see the cloud-init documentation) and is supported only on Linux operating systems.
How Deployment Scripts Work
Deployment Scripts are used when launching a Compute Instance and are paired with a designated "base image." When you launch an instance using a Deployment Script, the system first creates the instance from the specified base image. It then injects the Deployment Script as userdata. The Compute Instance Provisioner runs this script immediately after the instance has launched, applying your custom configurations.
Recommendations
Create a Deployment ScriptClone a Deployment ScriptLast updated
Was this helpful?