db_config_encrypt_secret: Encrypt a secret via KMS and prints the base64-encoded...

Description Usage Arguments Value Note Examples

View source: R/config.R

Description

Encrypt a secret via KMS and prints the base64-encoded cipher-text to the console

Usage

1

Arguments

secret

string of the actual secret to be encrypted/stored

key

Amazon KMS key to be used for the encryption

Value

base64-encoded cipher-text

Note

You need to have access to the related KMS key to be able to decrypt cipher-text

Examples

1
2
3
4
## Not run: 
encrypt_secret('secret sentence I want to store in the YAML file')

## End(Not run)

daroczig/dbr documentation built on June 12, 2020, 2:47 p.m.