page_title | subcategory | description |
---|---|---|
stackit_server_volume_attach Resource - stackit |
Volume attachment resource schema. Attaches a volume to a server. Must have a region specified in the provider configuration.
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources. |
Volume attachment resource schema. Attaches a volume to a server. Must have a region
specified in the provider configuration.
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.
resource "stackit_server_volume_attach" "attached_volume" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
server_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
volume_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
project_id
(String) STACKIT project ID to which the volume attachment is associated.server_id
(String) The server ID.volume_id
(String) The volume ID.
id
(String) Terraform's internal resource ID. It is structured as "project_id
,server_id
,volume_id
".