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.
Create a new Startup Script
resource "vultr_startup_script" "my_script" {
name = "echo_path"
script = "ZWNobyAkUEFUSAo="
}
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.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.Startup Scripts can be imported using the Startup Scripts ID, e.g.
terraform import vultr_startup_script.my_script ff8f36a8-eb86-4b8d-8667-b9d5459b6390