![]() Overview AWS Lambda, Amazon Simple Queue Service (Amazon SQS). Option 2: Configure one lambda function which can check type and then call the other lambda functions depending on its type. Lambda functions and triggers are the core components of building applications on AWS. Enter mySQStest for Function name, and leave the Node.js 12.x runtime. From the Lambda console, choose Create function. ![]() For Queue Name, enter myTestQueue.fifo and select FIFO Queue. ![]() You can't know about the type until it is consumed by the lambda. Navigate to the SQS console and choose Create New Queue. This may have something to do with the 'new SQS console experience' that is currently being advertised on the top of AWS. Option 1: Configure SQS to trigger a different lambda function depending on the type. Full setup is S3 (PutObjectEvent) -> SNS topic -> SQS -> Lambda. I could have sworn that there was an easy way to change the batch size of an SQS queue that is configured as a Lambda trigger, but as of July 2020 I can no longer find where this happens. Copied! import * as lambda from 'aws-cdk-lib/aws-lambda' import * as s3 from 'aws-cdk-lib/aws-s3' import * as s3n from 'aws-cdk-lib/aws-s3-notifications' import * as sns from 'aws-cdk-lib/aws-sns' import * as sqs from 'aws-cdk-lib/aws-sqs' import * as cdk from 'aws-cdk-lib' import * as path from 'path' export class CdkStarterStack extends cdk. Ive observed an abnormal (well, in my POV) feature, where when I setup SQS to trigger a Lambda, when new messages arrive, lambdas get triggered with more than 1 record/message inside its event body.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |