LCA as AWS Lambda: Deployment
Learn how to use AWS Lambda: Deployment to implement LCA.
To deploy an LCA in the AWS Lambda service, you need to create AWS IAM roles, create an AWS S3 bucket, and create an AWS Lambda function as explained in this section.
To deploy an LCA in the AWS Lambda service:
- Create AWS IAM RolesCreate a new IAM Role for working with the Lambda Functions. This role must have access to S3 and CloudWatch logs, and be able to invoke any other Lambda Functions. The role requires the following permissions:
- CloudWatchLogsFullAccess
- AmazonS3FullAccess
- LambdaFullAccess
- Create an AWS S3 Bucket:
- Create a new bucket and folder in S3.
- Upload all the LCA JARs to the folder and provide the required access to the user account.
- Create an AWS Lambda Function:
- Open the AWS Lambda console from the AWS Management Console.
- Click the Create Functions button.
- Select Author from Scratch.
- In the Function name field, type the Lambda Name (for example, NameConcatenate).
- In the Runtime field, select Java 17.
- Use the default value for Architecture.
- In the Execution role area, select the existing IAM role that was created earlier and click Create Function.
- In the Lambda details page, click Upload From drop-down and select Amazon S3 location option.
- In the Upload a file from Amazon S3 dialog box, provide S3 path and click Save.
- In the Lambda details page, click Edit under the Runtime settings section.
- In the Handler field, type your main java class name. Ensure that you enter a fully qualified handler class (for example,
com.reltio.cust.NameConcatenateClass
) and click Save. - To configure Environment Variables refer AWS document: AWS Lambda configuration environment variables.
- Click the Configuration tab, then choose General Configuration for Memory and Timeout settings.
- Optional: Enable multithreading to enhance performance
Enable multithreading for CPU-intensive processing to potentially improve performance and cost efficiency. Note that results may vary based on your specific workload.
To enable multithreading, add the following environment variable:
THREAD_POOL_SIZE
- Number of threads to be used.
Lambda memory THREAD_POOL_SIZE 512MB (Default memory size) 1 2048MB 2 4096MB 3 5376MB 4 7168MB 5 8960MB 6 10240MB 6