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
Copy file name to clipboardExpand all lines: docs/data-sources/kms_keyring.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
3
page_title: "stackit_kms_keyring Data Source - stackit"
4
4
subcategory: ""
5
5
description: |-
6
-
KMS Keyring resource schema.
6
+
KMS Keyring datasource schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on datasource level.
7
7
---
8
8
9
9
# stackit_kms_keyring (Data Source)
10
10
11
-
KMS Keyring resource schema.
11
+
KMS Keyring datasource schema. Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on datasource level.
12
12
13
13
## Example Usage
14
14
@@ -27,9 +27,12 @@ data "stackit_kms_keyring" "example" {
27
27
-`keyring_id` (String) An auto generated unique id which identifies the keyring.
28
28
-`project_id` (String) STACKIT project ID to which the keyring is associated.
29
29
30
+
### Optional
31
+
32
+
-`region` (String) The resource region. If not defined, the provider region is used.
33
+
30
34
### Read-Only
31
35
32
36
-`description` (String) A user chosen description to distinguish multiple keyrings.
33
37
-`display_name` (String) The display name to distinguish multiple keyrings.
34
38
-`id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`region`,`keyring_id`".
35
-
-`region` (String) The resource region. If not defined, the provider region is used.
KMS Keyring resource schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on resource level.
7
7
~> Keyrings will not be destroyed by terraform during a terraform destroy. They will just be thrown out of the Terraform state and not deleted on API side. This way we can ensure no keyring setups are deleted by accident and it gives you the option to recover your keys within the grace period.
8
8
---
9
9
10
10
# stackit_kms_keyring (Resource)
11
11
12
-
KMS Keyring resource schema.
12
+
KMS Keyring resource schema. Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on resource level.
13
13
14
14
~> Keyrings will **not** be destroyed by terraform during a `terraform destroy`. They will just be thrown out of the Terraform state and not deleted on API side. **This way we can ensure no keyring setups are deleted by accident and it gives you the option to recover your keys within the grace period.**
Copy file name to clipboardExpand all lines: stackit/internal/core/core.go
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,17 @@ import (
12
12
"github.com/hashicorp/terraform-plugin-log/tflog"
13
13
)
14
14
15
-
// Separator used for concatenation of TF-internal resource ID
16
-
constSeparator=","
17
-
18
15
typeResourceTypestring
19
16
20
17
const (
21
18
ResourceResourceType="resource"
22
19
DatasourceResourceType="datasource"
20
+
21
+
// Separator used for concatenation of TF-internal resource ID
22
+
Separator=","
23
+
24
+
ResourceRegionFallbackDocstring="Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on resource level."
25
+
DatasourceRegionFallbackDocstring="Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on datasource level."
oapiErr, ok:=err.(*oapierror.GenericOpenAPIError) //nolint:errorlint //complaining that error.As should be used to catch wrapped errors, but this error should not be wrapped
0 commit comments