Table of contents

Official Content

Timer-triggered functions are AWS Lambda functions that are invoked automatically in the Cloud according to a certain schedule. The key benefit is that a Server (Windows or Linux) does not need to be launched to run code on a timed basis.

Deployment steps

First, read HowTo: Create a GeneXus Procedure to be deployed as an Azure or AWS Function.

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

Properties Configuration

In the Deployment Unit, set the following properties as shown 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 Timer.
  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:

timer-triggeredAWSLambdafunction19082022

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, you must attach the trigger type for the function to be executed automatically on a timed basis.

  1. Go to AWS Lambda Console UI.
  2. Select the AWS Lambda Function.
  3. Click on “Add Trigger.”
    AWSQueuetriggeredfunctionsGXSQS_Handle
  4. Select the EventBridge option, complete the fields, and click on Add.  (You can also add the trigger through the EventBridge Console UI.)
    AWSEventBridgetriggeredfunctionsTriggerConfig
    This function will be automatically executed every 10 minutes, honoring the “Schedule expression” value.

Availability

Since GeneXus 17 Upgrade 11.

    

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant