We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 321a632 commit e9b4d36Copy full SHA for e9b4d36
2 files changed
…structure/modules/kms/kms_key_replica.tf …e/modules/kms/kms_replica_key_replica.tfinfrastructure/modules/kms/kms_key_replica.tf renamed to infrastructure/modules/kms/kms_replica_key_replica.tf
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 = try(aws_kms_replica_key.replica[0].key_id, null)
+ value = length(aws_kms_replica_key.replica) > 0 ? aws_kms_replica_key.replica[0].key_id : null
29
}
0 commit comments