After a quick search I found this issue on github that maybe match with what you looking for:
But the issue is closed.
One solution is when you create the index you can use the "_seq_no" field from the elastic response to understand that the index is created and assign your alias.
Thanks @gabriel_tessier for the alternative solution. Yes I saw that github thread but was hoping that there would be some updates since it was closed a long while ago.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.