We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9b4d36 commit 9d6ded1Copy full SHA for 9d6ded1
1 file changed
infrastructure/modules/kms/outputs.tf
@@ -25,5 +25,5 @@ output "replica_key_arn" {
25
26
output "replica_key_id" {
27
description = "ID of the Replica KMS key"
28
- value = length(aws_kms_replica_key.replica) > 0 ? aws_kms_replica_key.replica[0].key_id : null
+ value = try(aws_kms_replica_key.replica[0].key_id, null)
29
}
0 commit comments