1.0.0 • Published 4 years ago

ford-app-horizon-dynamo-helper v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Dump Dynamo (Table)

Downloader

Setup

environment variables

  • AWS_PROFILE if not using the default profile
  • AWS_REGION if not using the default region
  • L10N_TABLE (required) the name of the table to pull from
  • NAMESPACE (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 profile
  • AWS_REGION if not using the default region
  • L10N_TABLE (required) the name of the table to pull from
  • MODE (default is all) will update the keys that are uploaded from the data
    • us will upload ['_key', '_namespace', 'en', 'en-US']
    • eu will upload ['_key', '_namespace', 'en', 'en-GB']
    • dev will upload all l10n keys apart from en-US
    • generic will not filter the keys at all (for non-l10n tables)

parameters

  1. (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