Skip to content

Commit 69e8fe2

Browse files
committed
add write-only key payload field
1 parent b529a15 commit 69e8fe2

File tree

4 files changed

+245
-53
lines changed

4 files changed

+245
-53
lines changed

docs/resources/volume.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ page_title: "stackit_volume Resource - stackit"
44
subcategory: ""
55
description: |-
66
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.
78
---
89

910
# stackit_volume (Resource)
1011

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).
1215

1316
## Example Usage
1417

@@ -69,6 +72,8 @@ Required:
6972
Optional:
7073

7174
- `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.
7277

7378

7479
<a id="nestedatt--source"></a>

0 commit comments

Comments
 (0)