Strategy for sharing index/template configurations

I’m pretty new to opensearch but I’m experimenting with various ways to integrate it into development lifecycle.

In particular, I am interested in how people manage versions of their index setting and query templates.

For example, I am experimenting with running opensearch locally during local development so I don’t pollute our production or staging environments with local data, and I was wondering how we would share our opensearch index and templates settings with my fellow developers.

I know I could just put some code in our app that builds the indexes etc, but that is not ideal for us.

Any ideas are welcome.