One Time Bulk Node Creation I have Drupal 8 site I need to migrate a bunch of data into from a different CMS.  What I'd like to do is write a basic SQL query and iterate through the results, creating a new node for each returned row.

Since it's a one time thing - do I need to write a full module for this - or can I just hook into drupal some other way (like through the main index.php file) and do the node::create([]) $node->save() stuff from within there?

Never done something like this before - and looking for the easiest way.  Any help/guidance is appreciated!
Your options are:


Feeds module - You can check the doc here.
Export the content from source into csv or json. On the target (D8) either you can use Migrate module to handle the migration but requires custom coding. 
Create a json endpoint that will expose the content and in your target (D8) server consume that endpoint. You can then get the content by using Guzzle.


Example...

$request = Drupal::httpClient()-&gt;get($url);


See this page for more info.

P.S: I have no experience building with D8 yet but my suggestions above I guess is still applicable.