1.7.3 • Published 6 years ago
@rapidaim/credence v1.7.3
Environment variables
Set and get environmental variables in and from DynamoDB.
Variable values are encrypted using a KMS key.
$> npm i
$> AWS_PROFILE=... \
AWS_REGION=... \
node /app \
--action={action} \
--env={file_name} \
--out={file_name} \
--kms={kms_key} \
--forceAWS_PROFILE: TheAWS_PROFILEto be used (assuming a.aws/credentialsfile exists with the given profile name)AWS_REGION: TheAWS_REGIONwhich will be used for the operations. Defaults toap-southeast-2.KMS_KEY: TheKMS KEY(ID) used for KMS operations.
action: Eithersetorgetenv: The file where the environment (table, context and keys) is described. (See./env.jsonfor an example.)out: (Optional) File where values will be written (onget). Defaults to thetableinenv.json.kms: (Optional) If a KMS key ID is provided, values will be encrypted/decrypted using that key.force: (Optional) Will overwrite existing key/value pairs in the table (onset).
Note: Creedence will determine the output format from the out filename's extension.