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
27
stackit/internal/services/kms/testdata/key-max.tf
vendored
Normal file
27
stackit/internal/services/kms/testdata/key-max.tf
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
variable "project_id" {}
|
||||
|
||||
variable "keyring_display_name" {}
|
||||
variable "display_name" {}
|
||||
variable "description" {}
|
||||
variable "access_scope" {}
|
||||
variable "import_only" {}
|
||||
variable "protection" {}
|
||||
variable "algorithm" {}
|
||||
variable "purpose" {}
|
||||
|
||||
resource "stackit_kms_keyring" "keyring" {
|
||||
project_id = var.project_id
|
||||
display_name = var.keyring_display_name
|
||||
}
|
||||
|
||||
resource "stackit_kms_key" "key" {
|
||||
project_id = var.project_id
|
||||
keyring_id = stackit_kms_keyring.keyring.keyring_id
|
||||
protection = var.protection
|
||||
algorithm = var.algorithm
|
||||
display_name = var.display_name
|
||||
purpose = var.purpose
|
||||
description = var.description
|
||||
access_scope = var.access_scope
|
||||
import_only = var.import_only
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue