---
title: vultr_startup_script
url: https://docs.vultr.com/reference/terraform/resources/startup_script
description: Manages startup scripts that automate initial server configuration during deployment on Vultr.
publish_date: 2025-09-15T13:32:16.473421Z
last_updated: 2025-09-15T14:14:34.053009Z
---

# vultr_startup_script

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
```