Kong configuration from a file

I am aware of Kong Admin APIs where we can create new Service/Route etc.
So the whole configuration is based on Admin APIs.
Is there a way to load this configuration (create service, user, route etc…) from a file?

Kong has the option to load declarative configuration

Manual: https://docs.konghq.com/1.3.x/db-less-admin-api/#declarative-configuration
Announcement: https://konghq.com/blog/kong-1-1-released/

Thank you very much hutchic,
It looks like the declarative configuration only works with DB-less mode.
Is that correct? It is not very clear in the Manual/Announcement.

You can create initialize Kong’s database using the declarative configuration as well using the kong config db_import command.

1 Like