Install Lambda extension using curl

Hi,

I would like to know if it is possible to install the Lambda extensions using a curl command instead of doing it from the Edge UI. The idea is to invoke a script that will perform the action of creating the lambda extension for the org. The script would have a few curl commands that would serve this purpose. Would appreciate any pointers (urls, commands, etc).

Another item that i would like help with is to extract the request body from an incoming request and pass it on to a lambda function, I understand there are specific flow variables for this purpose.

Thanks in advance.

0 1 192
1 REPLY 1

  1. Extensions
    1. There are management APIs that include creating Extensions
      https://apidocs.apigee.com/docs/extensions/1/routes/v1/organizations/%7Borg%7D/environments/%7Benv%7...

      This will enable you to create the extension for the particular environment
    2. Instead of directly coding against the Management APIs, the maven config plugin also supports configuration of Extensions in addition to other Apigee configuration. You could use this as part of a CI CD pipeline
      https://github.com/apigee/apigee-config-maven-plugin
  2. To extract from an incoming request, you can use the ExtractVariables policy to extract data from the request object, and store it into an Apigee variable. You can then use that variable within the Extension policy you're using in your API Proxy.