feat(kms): add wrapping key resource and datasource (#1060)
relates to STACKITTPR-416
This commit is contained in:
parent
5e8c7a7369
commit
7709986560
13 changed files with 1395 additions and 2 deletions
25
stackit/internal/services/kms/testdata/wrapping-key-max.tf
vendored
Normal file
25
stackit/internal/services/kms/testdata/wrapping-key-max.tf
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
variable "project_id" {}
|
||||
|
||||
variable "keyring_display_name" {}
|
||||
variable "display_name" {}
|
||||
variable "protection" {}
|
||||
variable "algorithm" {}
|
||||
variable "purpose" {}
|
||||
variable "description" {}
|
||||
variable "access_scope" {}
|
||||
|
||||
resource "stackit_kms_keyring" "keyring" {
|
||||
project_id = var.project_id
|
||||
display_name = var.keyring_display_name
|
||||
}
|
||||
|
||||
resource "stackit_kms_wrapping_key" "wrapping_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
|
||||
}
|
||||
21
stackit/internal/services/kms/testdata/wrapping-key-min.tf
vendored
Normal file
21
stackit/internal/services/kms/testdata/wrapping-key-min.tf
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
variable "project_id" {}
|
||||
|
||||
variable "keyring_display_name" {}
|
||||
variable "display_name" {}
|
||||
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_wrapping_key" "wrapping_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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue