Terraform module for kms-key on aws
module "kms-key" {
source = "registry.patterneddesigns.ca/patterneddesigns/kms-key/aws"
version = "0.1.0"
}alias
requiredAlias for the KMS key. Must start with 'alias/' (e.g., alias/my-app-encryption).
descriptionDescription of the KMS key. Include purpose and which services or applications use it.
enable_key_rotationWhether to enable automatic key rotation. AWS rotates the key material annually when enabled.
deletion_window_in_daysDuration in days before the key is deleted. Minimum 7, maximum 30.
tagsTags to apply to all resources
publish_ssm_parametersPublish KMS key metadata to SSM Parameter Store for discovery by other modules
key_idID of the KMS key.
key_arnARN of the KMS key.
alias_arnARN of the KMS key alias.
alias_nameName of the KMS key alias.
ssm_parameter_pathsSSM parameter paths where KMS key metadata is published