ELK - index pattern configuration as code

Is there a way to configure default index pattern in configuration file so I wouldn't have to set it manually after each redeploy?Also
to configure and persist field level format ?

Hello,

You could set the default index pattern programatically as outlined in this thread.

Regards,
Aaron