Automate java Keyvalue store into Consul KV Store?

we have about 25 applications which have java key value properties (80 properties per app) (application configuration). and we need to import them into Consul KV store through an automated solution.

So far we are creating a json with key and base64 encoded value, and then using @import, but this is rather complex. (since our consul is running in a container, importing needs a terminal opening for docker container).

I could use HTTP put, but it takes one property at a time!

Is there any smart and efficient way ?


Take a look at Consul Transactions. You can use this API to PUT multiple KVs using a single operation.

Thanks Blake. I have figured that out , but even that has the limitation at 64 per transaction.