apigee / devrel

Common solutions and tools developed for Apigee
Apache License 2.0
181 stars 157 forks source link

Sackmesser - Deploy multiple proxies at once #658

Closed mahesh-kannekanti closed 1 year ago

mahesh-kannekanti commented 1 year ago

What is the way to deploy multiple proxies at once using Sackmesser?

We are able to do deploy each proxy bundle by going inside each proxy folder and run the deploy command. But we are looking if there is any way to deploy all the proxies with a single command running on the parent folder.

OmidTahouri commented 1 year ago

An API Proxy or Shared Flow is the unit of deployment in Apigee.

The recommendation would be to create a wrapper script (or something similiar) to orchestrate the deployment of multiple proxies for you. Effectively looping in a directory and running sackmesser deploy multiple times.

mahesh-kannekanti commented 1 year ago

Thanks for the response. We will look for the wrapper to iterate through the folders.

danistrebel commented 1 year ago

@mahesh-kannekanti Thanks for the suggestion. We have an example of such a wrapper script in DevRel if you're interested:

https://github.com/apigee/devrel/blob/main/references/common-shared-flows/deploy.sh

if deploys all subdirectories and allows you to specify an --async flag to speed things up considerably if the proxies are independent of one another.

mahesh-kannekanti commented 1 year ago

Thank You @danistrebel

Let me look into this.