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.
Arguments
Section titled “Arguments”| Name | Required | Notes |
|---|---|---|
name | yes | Updated in place |
instance_type | yes | Updated in place via resize (for example c1.small) |
image | yes | Forces replacement (for example ubuntu-24.04) |
region | no | Computed if omitted (API default local). Forces replacement |
user_data | no | Cloud-init. Forces replacement. The API does not return it |
deletion_protection | no | Computed. Updated in place |
Attributes
Section titled “Attributes”| Name | Notes |
|---|---|
id | Platform id (inst_…) |
state | Current resource state from the API |
Import
Section titled “Import”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.