Terraform module, which creates an S3 backup of the kv store store secrets for Hashicorp Vault.
A Terraform module designed to store Hashicorp Vault's key-value (kv) secrets in an AWS S3 bucket, compressed in ZIP format.
This module leverages AWS KMS and S3 aws terraform modules for creating kms and s3 aws infrastructure components.
module "vault_kv_backup" {
source = "../.."
kv_path = local.kv_path
bucket_name = random_pet.default.id
create_kms = true
}
Storing secrets for kv store Storing secrets for kv version2 store (WIP)
Report issues/questions/feature requests on in the issues section.
Name | Version |
---|---|
terraform | >= 1.0 |
archive | >= 2.4.0 |
aws | >= 5.9.0 |
null | >= 3.2 |
random | >= 3.0 |
vault | >= 3.15.2 |
Name | Version |
---|---|
archive | >= 2.4.0 |
aws | >= 5.9.0 |
null | >= 3.2 |
vault | >= 3.15.2 |
Name | Source | Version |
---|---|---|
kms | terraform-aws-modules/kms/aws | 1.5.0 |
s3_bucket | terraform-aws-modules/s3-bucket/aws | 3.15.0 |
Name | Type |
---|---|
aws_s3_object.backup | resource |
null_resource.remove_zip | resource |
archive_file.zip | data source |
vault_kv_secret.secrets | data source |
vault_kv_secrets_list.kv | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
bucket_name | Name of S3 bucket for backup | string |
n/a | yes |
create_bucket | Whether or not to create an s3 bucket | bool |
true |
no |
create_kms | Whether or not to create an key management service key | bool |
true |
no |
kms_deletion_window | KMS key deletion window | string |
14 |
no |
kms_multi_region | Whether to enable multi-region for KMS key | bool |
false |
no |
kv_path | key value secret engine mount point | string |
n/a | yes |
s3_object_tags | S3 object tags (max 10 items) | map(string) |
{} |
no |
tags | Tags | map(string) |
{} |
no |
Name | Description |
---|---|
kms_key_id | ID of the generated KMS key |
s3_bucket_name | S3 bucket name |
Apache 2 Licensed. See LICENSE for full details.
- Russia has illegally annexed Crimea in 2014 and brought the war in Donbas followed by full-scale invasion of Ukraine in 2022.
- Russia has brought sorrow and devastations to millions of Ukrainians, killed thousands of innocent people, damaged thousands of buildings including critical infrastructure, caused ecocide by blowing up a dam, bombed theater in Mariupol that had "Children" marking on the ground, raped men and boys, deported children in the occupied territoris, and forced millions of people to flee.
- Putin khuylo!