This filter allows you to Invoke AWS Lambda Function
This artifact was successfully tested for the following versions:
- 7.7 Auguest 2021 Release with patch - 25532
./gradlew build
- Copy aws-lambda-apim-sdk\lib\aws-lambda-apim-sdk-*.jar file in the API Gateway VORDEL_HOME/groups/group-x/instance-x/ext/lib
- Download https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-lambda/1.11.564/aws-java-sdk-lambda-1.11.564.jar and copy the file to VORDEL_HOME/groups/group-x/instance-x/ext/lib
- Download https://repo1.maven.org/maven2/com/amazonaws/jmespath-java/1.11.564/jmespath-java-1.11.564.jar and copy the file to VORDEL_HOME/groups/group-x/instance-x/ext/lib
- Configure AWS region
$export AWS_REGION=us-west-2
- Configure AWS Credentials profile
- Restart API Gateway instance
- Add the new JAR and any third-party JAR files used by the AWS lambda filter classes to the runtime dependencies in Policy Studio. Select Window > Preferences > runtime Dependencies, and click Add to browse to the new JAR and any third-party JARs, and add them to the list. Click Apply to save the changes.
- Restart Policystudo with policstudio -clean option
- Select Policystudio Import custom filter option from File menu and select file aws-lambda-apim-sdk/src/main/resources/AWSLambdaTypeSet.xml
Policy accepts following parameters
- Lambda function name
- AWS credential profile name Refer for more information
Policy generates following parameters
- aws.lambda.response - Response body from Lambda function
- aws.lambda.http.status.code - Response code from Lambda functoin
Please read Contributing.md for details on our code of conduct, and the process for submitting pull requests to us.