1.0.0 • Published 4 years ago
ford-app-horizon-dynamo-helper v1.0.0
Dump Dynamo (Table)
Downloader
Setup
environment variables
AWS_PROFILE
if not using the default profileAWS_REGION
if not using the default regionL10N_TABLE
(required) the name of the table to pull fromNAMESPACE
(required) from:dynamic
static
email
auth0spa
Usage
Development (locally)
AWS_PROFILE=horizon AWS_REGION=eu-west-2 L10N_TABLE=dev_emea_fh_l10n NAMESPACE=dynamic node index.js
Live
node index.js
Uploader
Setup
environment variables
AWS_PROFILE
if not using the default profileAWS_REGION
if not using the default regionL10N_TABLE
(required) the name of the table to pull fromMODE
(default isall
) will update the keys that are uploaded from the dataus
will upload['_key', '_namespace', 'en', 'en-US']
eu
will upload['_key', '_namespace', 'en', 'en-GB']
dev
will upload all l10n keys apart from en-USgeneric
will not filter the keys at all (for non-l10n tables)
parameters
- (required) path to csv
Usage
AWS_PROFILE=horizon AWS_REGION=eu-west-2 L10N_TABLE=prod_fh_l10n MODE=eu node upload-csv.js ~/Downloads/l10n.csv
1.0.0
4 years ago