kms-decrypter-module

bschaatsbergen/kms-decrypter-module/aws

Terraform Module HCL AWS

Terraform module to decrypt AWS KMS encrypted values

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

Terraform AWS KMS decrypter module Module to decrypt AWS KMS encrypted values. Please note that the decryted secrets are stored in the Terraform state, we encourage you to always treat your Terraform state as a secret and never store it in a public repository. Usage To use this module you're required to have a KMS key that you can use to encrypt/decrypt your secrets with. We simply declare a module block with the following configuration: ``hcl module "database_password" { source = "github.com/bschaatsbergen/terraform-aws-kms-decrypter-module" encrypted_value = "AQICAHik727zqZfJBvOo7aQDkoijs82qoKWaF0soyBA3CNnb7gG339QIJjNdUD7obzUlfMWFAAAAbjBsBgkqhkiG9w0BBwagXzBd" kms_key = "alias/example-kms-key" kms_key_region = "eu-central-1" } ` This module outputs a decrypted_value that you can use to pa

Inputs (3)
NameTypeDescriptionDefault
kms_key_regionstringKMS key region required
encrypted_valuestringKMS encrypted value required
kms_keystringKMS key to decrypt value with required
Outputs (1)
decrypted_value — Decrypted value
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars0
Forks1
Total downloads4.4k
Inputs3
Outputs1
LicenseMIT
Namespacebschaatsbergen
Updated