Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 2.42 KB

File metadata and controls

59 lines (46 loc) · 2.42 KB
page_title stackit_sfs_resource_pool Resource - stackit
subcategory
description Resource-pool resource schema. 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.

stackit_sfs_resource_pool (Resource)

Resource-pool resource schema. 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.

Example Usage

resource "stackit_sfs_resource_pool" "resourcepool" {
  project_id        = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
  name              = "some-resourcepool"
  availability_zone = "eu01-m"
  performance_class = "Standard"
  size_gigabytes    = 512
  ip_acl = [
    "192.168.42.1/32",
    "192.168.42.2/32"
  ]
  snapshots_are_visible = true
}

# Only use the import statement, if you want to import an existing resource pool
import {
  to = stackit_sfs_resource_pool.resourcepool
  id = "${var.project_id},${var.region},${var.resource_pool_id}"
}

Schema

Required

  • availability_zone (String) Availability zone.
  • ip_acl (List of String) List of IPs that can mount the resource pool in read-only; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP).
  • name (String) Name of the resource pool.
  • performance_class (String) Name of the performance class.
  • project_id (String) STACKIT project ID to which the resource pool is associated.
  • size_gigabytes (Number) Size of the resource pool (unit: gigabytes)

Optional

  • region (String) The resource region. If not defined, the provider region is used.
  • snapshots_are_visible (Boolean) If set to true, snapshots are visible and accessible to users. (default: false)

Read-Only

  • id (String) Terraform's internal resource ID. It is structured as "project_id,region,resource_pool_id".
  • resource_pool_id (String) Resource pool ID