Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 17, 2021
1 parent 11c6428 commit b876d4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/outputs.kms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# key
#---
output "kms_key_id" {
description = "Created KMS Key ID"
description = "KMS Key ID. This is the created key id or the key id of kms_key_arn"
value = var.kms_key_arn == null ? aws_kms_key.key[0].id : data.aws_kms_key.incoming_key[0].id
}

output "kms_key_arn" {
description = "Created KMS Key ARN"
description = "KMS Key ARN. This is the created key ARN or the key ARN of kms_key_arn"
value = var.kms_key_arn == null ? aws_kms_key.key[0].arn : data.aws_kms_key.incoming_key[0].arn
}

output "kms_key_alias" {
description = "Created KMS Key Alias name"
value = var.kms_key_arn == null ? aws_kms_alias.key[0].name : data.aws_kms_key.incoming_key[0].name
description = "KMS Key Alias name. If a kms_key_arn passed in, this will be null."
value = var.kms_key_arn == null ? aws_kms_alias.key[0].name : null
}

0 comments on commit b876d4d

Please sign in to comment.