Writing data to DynamoDB using AWS