Skip to content

Commit 441df94

Browse files
committed
fix kms key output using index
1 parent eaf5dfa commit 441df94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
output "kms_key_id" {
2-
value = aws_kms_key.this[0].key_id
2+
value = length(aws_kms_key.this) > 0 ? aws_kms_key.this[*].key_id : null
33
description = "The provisioned KMS key id"
44
}
55

0 commit comments

Comments
 (0)