A small Java/Spring Boot application to write per batch many records to any DynamoDB table. Application was made using AWS SDK v1.12.x for Java.
AWS_REGIONDynamoDB region name.AWS_ENDPOINTServer URL where DynamoDB is running.AWS_ACCESS_KEY_IDDynamoDB access key.AWS_ACCESS_KEY_IDDynamoDB secret key.LOGGING_LEVEL_DYNAMO_REQUESTEnable/Disable logs of DynamoDB query requests. To enable set DEBUG or to disable set NONE.
{
"table_name": "string",
"content": {
"Items": [
{
"string": {
"B": "string",
"BS": [
"string"
],
"L": [
"AttributeValue"
],
"BOOL": false,
"N": "string",
"NS": [
"string"
],
"NULL": true,
"S": "string",
"SS": [
"string"
]
}
}
]
}
}Note: For now, DynamoDB data type of Map (M) isn't supported. About all DynamoDB data types, can visit this link.
{
"table_name": "persons",
"content": {
"Items": [
{
"NAME": {
"S": "JHONATAN"
},
"PHONES": {
"L": [
{
"S": "789456"
},
{
"S": "456987"
}
]
},
"SIGN": {
"B": "dGhpcyBmaXJzdCB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"
},
"ID": {
"N": "1"
}
},
{
"NAME": {
"S": "DAVID"
},
"PHONES": {
"L": [
{
"S": "123456"
},
{
"S": "321654"
}
]
},
"SIGN": {
"B": "dGhpcyBzZWNvbmQgdGV4dCBpcyBiYXNlNjQtZW5jb2RlZA"
},
"ID": {
"N": "2"
}
}
]
}
}- Jhonatan David Castillo Salvador - @jhonatandevperu