AWS Queue triggered functions

Official Content
This documentation is valid for:

The Queue storage trigger runs functions as messages are added to AWS SQS service.

The Trigger Type property at the deployment unit must be "Queue" for this kind of function.

Deployment steps

First, read How to: create a GeneXus procedure to be deployed as an Azure Function or an AWS Lambda Function.

To deploy the function, use the deployment tool. See Deploy to AWS Lambda Function.

Properties Configuration

Set the following properties as indicated below:

  1. AWS Access Key ID/AWS Secret Access Key: Enter your AWS Access Key.
  2. AWS Default Region: Select your preferred region (localization) for your Deployment.
  3. Function Name: It's the name used to display the application.
  4. Trigger type: Select Queue.
  5. IAM Execution Role ARN property: Enter the Amazon Resource Names (ARNs) path.

Sample

The configuration settings are as shown in the following image taken from an example:

AWSQueuetriggeredfunctions19082022

Note: You must have previously created an IAM Execution Role with the minimum permissions required for the function to execute.

AWS Configuration

From the AWS Console UI, attach the trigger type for the function to be executed automatically when a new Queue message is created.

  1. Go to AWS Lambda Console UI.
  2. Select the AWS Lambda Function.
  3. Click on “Add Trigger.”
    AWSQueuetriggeredfunctionsGXSQS_Handle
  4. Select the SQS Source and click on Add.
    AWSQueuetriggeredfunctionsAddTrigger

Availability

Since GeneXus 17 Upgrade 11.