juju_storage_pool (Resource)¶
A resource that represents a Juju storage pool.
To learn more about storage pools, please visit: https://documentation.ubuntu.com/juju/3.6/reference/storage/#storage-pool
Example Usage¶
resource "juju_storage_pool" "mypool" {
name = "mypool"
model_uuid = juju_model.development.uuid
storage_provider = "tmpfs"
attributes = {
a = "b"
c = "d"
}
}
Schema¶
Required¶
model_uuid(String) The UUID of the model where the storage pool will be created.name(String) The name of the storage pool.storage_provider(String) The storage provider type (e.g., ‘rootfs’, ‘tmpfs’, ‘loop’, or a cloud specific provider).
Optional¶
attributes(Map of String) Attributes for the storage pool.
Read-Only¶
id(String) The ID of this resource.
Import¶
Import is supported using the following syntax:
# Storage pools can be imported with the UUID of the model and the name of the pool.
$ terraform import juju_storage_pool.my_pool 1d10a751-02c1-43d5-b46b-d84fe04d6fde:my_pool