You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Volume resource schema. Must have a region specified in the provider configuration.
7
+
-> Note: Write-Only argument key_payload_base64_wo is available to use in place of key_payload_base64. Write-Only arguments are supported in HashiCorp Terraform 1.11.0 and later. Learn more https://developer.hashicorp.com/terraform/language/resources/ephemeral#write-only-arguments.
7
8
---
8
9
9
10
# stackit_volume (Resource)
10
11
11
-
Volume resource schema. Must have a `region` specified in the provider configuration.
12
+
Volume resource schema. Must have a `region` specified in the provider configuration.
13
+
14
+
-> **Note:** Write-Only argument `key_payload_base64_wo` is available to use in place of `key_payload_base64`. Write-Only arguments are supported in HashiCorp Terraform 1.11.0 and later. [Learn more](https://developer.hashicorp.com/terraform/language/resources/ephemeral#write-only-arguments).
12
15
13
16
## Example Usage
14
17
@@ -41,6 +44,7 @@ import {
41
44
### Optional
42
45
43
46
-`description` (String) The description of the volume.
47
+
-`encryption_parameters` (Attributes) Parameter to connect to a key-encryption-key within the STACKIT-KMS to create encrypted volumes. These parameters never leave the backend again. So these parameters are not present on imports or in the datasource. They live only in your Terraform state after creation of the resource. (see [below for nested schema](#nestedatt--encryption_parameters))
44
48
-`labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
45
49
-`name` (String) The name of the volume.
46
50
-`performance_class` (String) The performance class of the volume. Possible values are documented in [Service plans BlockStorage](https://docs.stackit.cloud/products/storage/block-storage/basics/service-plans/#currently-available-service-plans-performance-classes)
@@ -50,10 +54,28 @@ import {
50
54
51
55
### Read-Only
52
56
57
+
-`encrypted` (Boolean) Indicates if the volume is encrypted.
53
58
-`id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`region`,`volume_id`".
54
59
-`server_id` (String) The server ID of the server to which the volume is attached to.
55
60
-`volume_id` (String) The volume ID.
56
61
62
+
<aid="nestedatt--encryption_parameters"></a>
63
+
### Nested Schema for `encryption_parameters`
64
+
65
+
Required:
66
+
67
+
-`kek_key_id` (String) UUID of the key within the STACKIT-KMS to use for the encryption.
68
+
-`kek_key_version` (Number) Version of the key within the STACKIT-KMS to use for the encryption.
69
+
-`kek_keyring_id` (String) UUID of the keyring where the key is located within the STACKTI-KMS.
70
+
-`service_account` (String) Service-Account linked to the Key within the STACKIT-KMS.
71
+
72
+
Optional:
73
+
74
+
-`key_payload_base64` (String, Sensitive) Optional predefined secret, which will be encrypted against the key-encryption-key within the STACKIT-KMS. If not defined, a random secret will be generated by the API and encrypted against the STACKIT-KMS. If a key-payload is provided here, it must be base64 encoded.
75
+
-`key_payload_base64_wo` (String, Sensitive, [Write-only](https://developer.hashicorp.com/terraform/language/resources/ephemeral#write-only-arguments)) Optional predefined secret, which will be encrypted against the key-encryption-key within the STACKIT-KMS. If not defined, a random secret will be generated by the API and encrypted against the STACKIT-KMS. If a key-payload is provided here, it must be base64 encoded.
76
+
-`key_payload_base64_wo_version` (Number) Used together with `key_payload_base64_wo` to trigger an re-create. Increment this value when an update to `key_payload_base64_wo` is required.
0 commit comments