Skip to content

launchbynttdata/tf-aws-module_primitive-kms_key

Repository files navigation

tf-aws-module_primitive-kms_key

Requirements

Name Version
terraform ~> 1.0
aws ~> 5.0

Providers

Name Version
aws 5.100.0

Modules

No modules.

Resources

Name Type
aws_kms_key.this resource
aws_iam_policy_document.kms_policy data source

Inputs

Name Description Type Default Required
description A description of the KMS key. string "Managed by Terraform" no
key_usage The intended use of the KMS key. Valid values are 'ENCRYPT_DECRYPT' and 'SIGN_VERIFY'. string "ENCRYPT_DECRYPT" no
policy A JSON-formatted string that represents the key policy to attach to the KMS key.
map(object({
sid = string
effect = string
principals = map(list(string))
actions = list(string)
resources = list(string)
}))
null no
deletion_window_in_days The waiting period, specified in number of days, before the KMS key is deleted after destruction is requested. number 30 no
is_enabled Specifies whether the KMS key is enabled. bool true no
enable_key_rotation Specifies whether key rotation is enabled for the KMS key. bool false no
rotation_period_in_days The number of days in the rotation period for the KMS key. Only applicable if enable_key_rotation is true. number 365 no
multi_region Specifies whether the KMS key is a multi-region key. bool false no
tags A map of tags to assign to the KMS key. map(string) {} no

Outputs

Name Description
key_id The ID of the KMS key.
arn The ARN of the KMS key.
tags_all A map of tags assigned to the KMS key, including those inherited from the provider default_tags configuration block.