Usually a chef is used to set things up in an instance. I'm not quite sure how you start node with a chef, but maybe you can share this and I will continue my answer?
Otherwise, fog is a great library to perform these tasks. I was just browsing the source, and it looks like it also supports tagging.
To get the fog: gem install fog .
Till source share