Skip to main content
This feature is in public preview.
An instance template defines the configuration for an instance: which image to boot and an optional cloud-init script. Templates are used by deployments to create instances with a consistent configuration. Templates are immutable. To change a configuration, create a new template and update your deployment to reference it.

Create an instance template

Cloud-init

Pass a startup script or cloud-config YAML file via --cloud-init. The file is stored with the template and applied to every instance created from it. Maximum size is 64 KB.
startup.sh

List templates

Get template details

Template IDs are prefixed ntmpl_ for backwards compatibility with the resource’s previous name (node-template). The CLI, API, and SDK all refer to it as an instance template.

Delete a template

A template cannot be deleted while it is in use by a deployment or running instance. Remove or update the referencing deployment first.

API reference

See the Instance Templates API for programmatic access.