Skip to content

Add Lambda/serverless function as the resources #576

@pkarw

Description

@pkarw

Is your feature request related to a problem? If yes, please describe the problem.
It would be great to have an abstract resource like lambda for adding custom resources based on AWS. OK, it's kind of wrapper for fetch but it shows how super easily one can extend and call the AskQL with custom-made data sources

Describe the solution you'd like to see.
It could be like lambda helper one can could add as a customResource. I mean something like:

const baseEnvironment = {
  const customResources = [
    'myLambdaCall': awsLambda("myFunctionName", awsOptions) // the first attribute of the returned resource is accepting the lambda payload and it's returning json
  ];
  resources: {...builtInResources, ...customResources },
  // customValues,
};

so then they could use it in the AskQL Script (assuming we already have #575 implemented) like this:

let a =  { exampleObject }
a:myLambdaCall:jsonPath("a:items[0]")

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions