A terraform module to create a managed KMS Customer Master Key (CMK) and its alias.
Available through the Terraform registry.
Branch | Build status |
---|---|
master |
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"
}
}
Created and maintained by Christophe Gasmi - [email protected].
MIT Licensed. See LICENSE for full details.
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 |
Name | Description |
---|---|
key_alias_arn | The KMS Key Alias arn |
key_stack_arn | The KMS Key arn |
key_stack_id | The KMS Key ID |