Skip to content

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

Volume

platform_volume is a block storage volume. size_gb, type, iops, and throughput update in place via modify. region forces replacement.

resource "platform_volume" "data" {
name = "data-1"
size_gb = 10
}

Growing size_gb does not replace the volume.

NameRequiredNotes
nameyesDisplay name
size_gbyesUpdated in place
typenoComputed if omitted. Updated in place
iopsnoComputed if omitted. Updated in place
throughputnoComputed if omitted. Updated in place
regionnoComputed if omitted (API default local). Forces replacement
NameNotes
idPlatform id
stateCurrent resource state from the API
attached_toInstance id when attached; empty otherwise

This resource creates and deletes the volume. Attach and detach are API actions, not Terraform attributes you set here.

Terminal window
terraform import platform_volume.data vol_…