Creating a template with an alias that does not yet exist

Is there a way to create a template that adds the newly created into a non-existent alias?

I'm creating a template that will be used in the creation of new indexes (none of which exist yet). I want to specify an alias to be automatically added to all the new indexes that get created, however I can't, since I can't seem to create an alias without already having an index.

This seems like a chicken/egg situation, since I can't create a template that makes use an alias, and I can't create an alias until I have the index that gets created by the template...