I have two DynamoDB tables with the following items:
Table_1
SomeId: string
Name: string
Table_2
Id: string
Name: string
Surname: string
This is what I need:
- Migrate the data from Table_1 to Table_2.
- Map the Table_1.SomeId attribute to the Table_2.Id attribute
- While migrating set default values for Table_2.Surname
I took a look of Amazon Data Pipeline service. Apparently, you can export the data from Table_1 to S3. And then, import the data from S3 to Table_2.
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBPipeline.html
What I cannot see is how to map the attributes if the tables have different schema.
I found solutions base on writing a console application from scratch using the SDK. Any better advice on this?