kms

clouddrove/kms/aws

Terraform Module HCL AWS

This terraform module creates a KMS Customer Master Key (CMK) and its alias.

Install
module "kms" {
source = "clouddrove/kms/aws"
version = "1.3.1"
}
plain text: /constructs/tfmod-clouddrove-kms-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform AWS KMS This terraform module creates a KMS Customer Master Key (CMK) and its alias. We eat, drink, sleep and most importantly love DevOps. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems . Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces within the infrastructure. This module is basically combination of Terraform open source and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastruct

Inputs (25)
NameTypeDescriptionDefault
label_orderlist(any)label order, e.g. `name`,`application`.[ "name", "environment" ]
is_enabledboolSpecifies whether the key is enabled.true
enabledboolSpecifies whether the kms is enabled or disabled.true
customer_master_key_specstringSpecifies whether the key contains a symmetric key or an asymmetric key pair and"SYMMETRIC_DEFAULT"
primary_external_key_arnstringThe primary external key arn of a multi-region replica external keynull
primary_key_arnstringThe primary key arn of a multi-region replica key""
policystringA valid policy JSON document. Although this is a key policy, not an IAM policy, null
namestringName (e.g. `app` or `cluster`).""
create_replica_external_enabledboolDetermines whether a replica external CMK will be created (externally provided mfalse
kms_key_enabledboolSpecifies whether the kms is enabled or disabled.true
aliasstringThe display name of the alias. The name must start with the word `alias` followe""
enable_key_rotationstringSpecifies whether key rotation is enabled.true
valid_tostringTime at which the imported key material expires. When the key material expires, ""
key_material_base64stringBase64 encoded 256-bit symmetric encryption key material to import. The CMK is pnull
create_replica_enabledboolDetermines whether a replica standard CMK will be created (AWS provided materialfalse
attributeslist(string)Additional attributes (e.g. `1`).[]
environmentstringEnvironment (e.g. `prod`, `dev`, `staging`).""
managedbystringManagedBy, eg 'CloudDrove'."[email protected]"
deletion_window_in_daysnumberDuration in days after which the key is deleted after destruction of the resourc10
key_usagestringSpecifies the intended use of the key. Defaults to ENCRYPT_DECRYPT, and only sym"ENCRYPT_DECRYPT"
Outputs (6)
alias_name — Alias name.
tags — A mapping of tags to assign to the resource.
target_key_id — Identifier for the key for which the alias is for, can be either an ARN or key_id.
key_arn — Key ARN.
key_id — Key ID.
alias_arn — Alias ARN.
Resources (5)
aws_kms_aliasaws_kms_external_keyaws_kms_keyaws_kms_replica_external_keyaws_kms_replica_key
Details
FrameworkTerraform Module
LanguageHCL
Version1.3.1
Cloud AWS
★ Stars21
Forks12
Total downloads782.3k
Inputs25
Outputs6
Resources5
LicenseApache-2.0
Namespaceclouddrove
Updated