All Modules
AWSSecurity

KMS

Customer Managed Key with auto-rotation, alias, and configurable key policy

Usage

module "kms" {
  source = "github.com/fencepencil/fencepencil-aws-modules//kms"

  alias = "<alias>"

  tags = var.tags
}

Inputs (6)

NameTypeDescriptionDefaultRequired
aliasstringAlias for the KMS keyyes
descriptionstringDescription of the KMS keyCustomer managed KMS keyno
deletion_window_in_daysnumberDays before key is deleted30no
rotation_period_in_daysnumberDays between key rotations365no
multi_regionboolCreate a multi-region keyfalseno
tagsmap(string)Tags to apply to all resources{}no

Outputs (3)

NameDescription
key_idID of the KMS key
key_arnARN of the KMS key
alias_arnARN of the KMS alias

More AWS Modules

Browse our full library of AWS infrastructure modules.

View all AWS modules