Use AWS::Lambda::EventInvokeConfig to limit retries Example: Resources: function: Type: AWS::Lambda::Function Properties: Handler: index.handler Role: arn:aws:iam::123456789012:role/lambda-role Code: ZipFile: | exports.handler =
Tag: AWS
AWS Cloudwatch Alarm
For Lambda: MyNewAlarm: Type: AWS::CloudWatch::Alarm Properties: AlarmName: “AlarmNameGoesHere” AlarmDescription: “Alarm if lambda errors out too many times” Namespace: “AWS/Lambda” MetricName:
Reprocess AWS DB Stream
Note: DLQ for failed lambda invokation stores stream information, not the record itself Solution: You need to call get-shard-iterator, and then
AWS EventBridge Pipe to Cloudwatch to Firehose
Cloudwatch logs subscription consumer example code
AWS Kinesis to Eventbridge Pipe to Kinesis
Tutorial: Set up from Console https://www.eliasbrange.dev/posts/debug-dynamodb-with-eventbridge-pipes-and-cloudwatch/ Sample in pipe: { “kinesisSchemaVersion”: “1.0”, “partitionKey”: “1”, “sequenceNumber”: “49590338271490256608559692538361571095921575989136588898”, “data”: “SGVsbG8sIHRoaXMgaXMgYSB0ZXN0Lg==”, “approximateArrivalTimestamp”: 1545084650.987,
AWS Firehose to Elastic Search
How many shards are needed in a new elastic search domain Kinesis firehose destination to elastic search Firehose delivers to
AWS Event Bridge Pipe Filtering
Kinesis to Kinesis Overview code example Data filtering example Filtering kinesis json example Event Bridge Pipe sources Event Bridge Pipe
AWS Credential in Nodejs File
Adding via Shared File Credential, specifying profile name: Shared File Credentials: [default] ; default profile aws_access_key_id = aws_secret_access_key = [personal-account]
Running DynamoDB Locally Offline
https://dynobase.dev/run-dynamodb-locally/
Step Function and lambda
Avoid reaching history quota Tutorial for creating lambda and step function that invokes it Invoke syntax, parameter and payload Supported