Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Instance

platform_instance is a compute instance. Changing instance_type resizes in place. Changing name or deletion_protection updates in place. Changing image, region, or user_data replaces the instance.

resource "platform_instance" "web" {
name = "web-1"
instance_type = "c1.small"
image = "ubuntu-24.04"
}

List available types with the CLI (platform catalog types) or the Go / TypeScript / Python SDKs.

NameRequiredNotes
nameyesUpdated in place
instance_typeyesUpdated in place via resize (for example c1.small)
imageyesForces replacement (for example ubuntu-24.04)
regionnoComputed if omitted (API default local). Forces replacement
user_datanoCloud-init. Forces replacement. The API does not return it
deletion_protectionnoComputed. Updated in place
NameNotes
idPlatform id (inst_…)
stateCurrent resource state from the API
Terminal window
terraform import platform_instance.web inst_…

Only the id is required; Read fills the rest. user_data stays empty after import because the API does not return it.