Skip to content

Commit

Permalink
feat: added description and update example.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
theprashantyadav committed Jun 15, 2023
1 parent f7cffa3 commit 9e6a893
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 50 deletions.
38 changes: 19 additions & 19 deletions _example/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#output "key_arn" {
# value = module.kms_key.key_arn
# description = "Key ARN."
#}
#
#output "tags" {
# value = module.kms_key.tags
# description = "A mapping of tags to assign to the KMS."
#}
#
#output "key_id" {
# value = module.kms_key.key_id
# description = "The globally unique identifier for the key."
#}
#
#output "target_key_id" {
# value = module.kms_key.target_key_id
# description = "Identifier for the key for which the alias is for, can be either an ARN or key_id."
#}
output "key_arn" {
value = module.kms_key.key_arn
description = "Key ARN."
}

output "tags" {
value = module.kms_key.tags
description = "A mapping of tags to assign to the KMS."
}

output "key_id" {
value = module.kms_key.key_id
description = "The globally unique identifier for the key."
}

output "target_key_id" {
value = module.kms_key.target_key_id
description = "Identifier for the key for which the alias is for, can be either an ARN or key_id."
}
60 changes: 29 additions & 31 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
## Module : KMS KEY
## Description : This terraform module creates a KMS Customer Master Key (CMK) and its alias.
#output "key_arn" {
# value = join("", aws_kms_key.default.*.arn)
# description = "Key ARN."
#}
#
#output "key_id" {
# value = join("", aws_kms_key.default.*.key_id)
# description = "Key ID."
#}
#
#output "alias_arn" {
# value = join("", aws_kms_alias.default.*.arn)
# description = "Alias ARN."
#}
#
#output "alias_name" {
# value = join("", aws_kms_alias.default.*.name)
# description = "Alias name."
#}
#
#output "tags" {
# value = module.labels.tags
# description = "A mapping of tags to assign to the resource."
#}
#
#output "target_key_id" {
# value = join("", aws_kms_alias.default.*.target_key_id)
# description = "Identifier for the key for which the alias is for, can be either an ARN or key_id."
#}
output "key_arn" {
value = join("", aws_kms_key.default.*.arn)
description = "Key ARN."
}

output "key_id" {
value = join("", aws_kms_key.default.*.key_id)
description = "Key ID."
}

output "alias_arn" {
value = join("", aws_kms_alias.default.*.arn)
description = "Alias ARN."
}

output "alias_name" {
value = join("", aws_kms_alias.default.*.name)
description = "Alias name."
}

output "tags" {
value = module.labels.tags
description = "A mapping of tags to assign to the resource."
}

output "target_key_id" {
value = join("", aws_kms_alias.default.*.target_key_id)
description = "Identifier for the key for which the alias is for, can be either an ARN or key_id."
}

0 comments on commit 9e6a893

Please sign in to comment.