Vultr DocsLatest Content


vultr_startup_script

Updated on 15 September, 2025

Manages startup scripts that automate initial server configuration during deployment on Vultr.


Provides a Vultr Startup Script resource. This can be used to create, read, modify, and delete Startup Scripts.

Example Usage

Create a new Startup Script

hcl
resource "vultr_startup_script" "my_script" {
    name = "echo_path"
    script = "ZWNobyAkUEFUSAo="
}

Argument Reference

The following arguments are supported:

  • name - (Required) Name of the given script.
  • script - (Required) Contents of the startup script base64 encoded.
  • type - (Optional) Type of startup script. Possible values are boot or pxe - default is boot.

Attributes Reference

The following attributes are exported:

  • id - ID of the script.
  • name - Name of the given script.
  • date_created - Date the script was created.
  • date_modified - Date the script was last modified.
  • type - The type of startup script this is.
  • script - The contents of the startup script base64 encoded.

Import

Startup Scripts can be imported using the Startup Scripts ID, e.g.

terraform import vultr_startup_script.my_script ff8f36a8-eb86-4b8d-8667-b9d5459b6390

Comments

No comments yet.