Initial Oracle Deep Data Security lab kit
This commit is contained in:
19
terraform/modules/vault/main.tf
Normal file
19
terraform/modules/vault/main.tf
Normal file
@@ -0,0 +1,19 @@
|
||||
resource "oci_kms_vault" "this" {
|
||||
compartment_id = var.compartment_id
|
||||
display_name = "${var.name_prefix}-vault"
|
||||
vault_type = "DEFAULT"
|
||||
freeform_tags = var.freeform_tags
|
||||
}
|
||||
|
||||
resource "oci_kms_key" "adb" {
|
||||
compartment_id = var.compartment_id
|
||||
display_name = "${var.name_prefix}-adb-key"
|
||||
management_endpoint = oci_kms_vault.this.management_endpoint
|
||||
freeform_tags = var.freeform_tags
|
||||
|
||||
key_shape {
|
||||
algorithm = "AES"
|
||||
length = 32
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user