feat(kms): add key resource and datasource (#1055)
relates to STACKITTPR-411
This commit is contained in:
parent
b5f82e7de9
commit
5e8c7a7369
13 changed files with 1369 additions and 3 deletions
5
examples/data-sources/stackit_kms_key/data-source.tf
Normal file
5
examples/data-sources/stackit_kms_key/data-source.tf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
data "stackit_kms_key" "key" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
keyring_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
key_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
8
examples/resources/stackit_kms_key/resource.tf
Normal file
8
examples/resources/stackit_kms_key/resource.tf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
resource "stackit_kms_key" "key" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
keyring_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
display_name = "key-01"
|
||||
protection = "software"
|
||||
algorithm = "aes_256_gcm"
|
||||
purpose = "symmetric_encrypt_decrypt"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue