rekcah78 / terraform-aws-kms

A Terraform module which creates a KMS Customer Master Key (CMK) and its alias.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-kms

A terraform module to create a managed KMS Customer Master Key (CMK) and its alias.

Available through the Terraform registry.

Branch Build status
master build Status

Usage example

A full examples leveraging is contained in the examples/ directory.

Here's the gist of using it via the Terraform registry:

module "kms" {
  source  = "rekcah78/kms/aws"
  project = "examples"
  env     = "demo"
  tags    = {
    Team = "Examples"
    Environment = "demo"
  }
}

Authors

Created and maintained by Christophe Gasmi - rekcah78@gmail.com.

License

MIT Licensed. See LICENSE for full details.

Inputs

Name Description Type Default Required
custom_policy Custom IAM Policy to override the default policy string "" no
deletion_window_in_days Delay before finale deleting, Must be between 7 and 30 days string "30" no
enable_key_rotation Specifies whether key rotation is enabled bool "false" no
env Name of the env (e.g. prod, dev, staging) string n/a yes
project Name of the project string n/a yes
stack Name of the KMS instance string "kms" no
tags Additional tags (e.g. map(BusinessUnit,MyTeam) map <map> no

Outputs

Name Description
key_alias_arn The KMS Key Alias arn
key_stack_arn The KMS Key arn
key_stack_id The KMS Key ID

About

A Terraform module which creates a KMS Customer Master Key (CMK) and its alias.

License:MIT License


Languages

Language:HCL 100.0%