Skip to content

Commit 6698eca

Browse files
committed
kms support for defined tags
Signed-off-by: junior <junior@users.noreply.github.com>
1 parent 7b705e7 commit 6698eca

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

modules/oci-vault-kms/main.tf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
### OCI Vault vault
1010
resource "oci_kms_vault" "oke_vault" {
1111
compartment_id = var.oke_cluster_compartment_ocid
12-
display_name = "${local.vault_display_name} - ${var.freeform_deployment_tags.DeploymentID}"
12+
display_name = "${local.vault_display_name} - ${local.deploy_id}"
1313
vault_type = local.vault_type[0]
14-
freeform_tags = var.freeform_deployment_tags
14+
freeform_tags = var.oci_tag_values.freeformTags
15+
defined_tags = var.oci_tag_values.definedTags
1516

1617
# depends_on = [oci_identity_policy.kms_user_group_compartment_policies]
1718

@@ -20,10 +21,11 @@ resource "oci_kms_vault" "oke_vault" {
2021
### OCI Vault key
2122
resource "oci_kms_key" "oke_key" {
2223
compartment_id = var.oke_cluster_compartment_ocid
23-
display_name = "${local.vault_key_display_name} - ${var.freeform_deployment_tags.DeploymentID}"
24+
display_name = "${local.vault_key_display_name} - ${local.deploy_id}"
2425
management_endpoint = oci_kms_vault.oke_vault[0].management_endpoint
2526
protection_mode = local.vault_key_protection_mode
26-
freeform_tags = var.freeform_deployment_tags
27+
freeform_tags = var.oci_tag_values.freeformTags
28+
defined_tags = var.oci_tag_values.definedTags
2729

2830
key_shape {
2931
algorithm = local.vault_key_key_shape_algorithm

0 commit comments

Comments
 (0)