Skip to content

Commit e9b4d36

Browse files
committed
CCM-10231: Adding multi-region kms key support
1 parent 321a632 commit e9b4d36

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

File renamed without changes.

infrastructure/modules/kms/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ output "replica_key_arn" {
2525

2626
output "replica_key_id" {
2727
description = "ID of the Replica KMS key"
28-
value = try(aws_kms_replica_key.replica[0].key_id, null)
28+
value = length(aws_kms_replica_key.replica) > 0 ? aws_kms_replica_key.replica[0].key_id : null
2929
}

0 commit comments

Comments
 (0)