-
Set AWS credentials on
DynamoDBtoCSV/dynamoDBtoCSV.js
-
Do the data dump from DynamoDB
$ node DynamoDBtoCSV/dynamoDBtoCSV.js -t homolog-chubaca-carriers > dynamo_output/output.csv
-
Start Docker services
$ docker-compose up
-
Enter the container and access database
$ docker-compose exec mysql bash $ mysql -u root -p
-
Create table schema
CREATE TABLE carrier ...
-
Run importation command
LOAD DATA INFILE '/home/dynamo-output/output.csv' INTO TABLE table_name FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '/n' IGNORE 1 ROWS;