Skip to content

Commit 06b5ddc

Browse files
authored
Merge pull request #5 from synapsestudios/kms-output-fix
fix kms key output using index
2 parents eaf5dfa + 441df94 commit 06b5ddc

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)