Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

lambda-error-sns-sender

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-error-sns-sender - npm Package Compare versions

Comparing version 0.0.37 to 0.0.38

@@ -6,3 +6,3 @@ import { awscdk } from 'projen';

authorAddress: 'marko@serverlesslife.com',
cdkVersion: '2.91.0',
cdkVersion: '2.70.0',
defaultReleaseBranch: 'main',

@@ -9,0 +9,0 @@ jsiiVersion: '~5.0.0',

@@ -135,3 +135,2 @@ # Lambda Error SNS Sender

| <code><a href="#lambda-error-sns-sender.LambdaErrorSnsSenderProps.property.stackName">stackName</a></code> | <code>string</code> | Name to deploy the stack with. |
| <code><a href="#lambda-error-sns-sender.LambdaErrorSnsSenderProps.property.suppressTemplateIndentation">suppressTemplateIndentation</a></code> | <code>boolean</code> | Enable this flag to suppress indentation in generated CloudFormation templates. |
| <code><a href="#lambda-error-sns-sender.LambdaErrorSnsSenderProps.property.synthesizer">synthesizer</a></code> | <code>aws-cdk-lib.IStackSynthesizer</code> | Synthesis method to use while deploying this stack. |

@@ -290,19 +289,2 @@ | <code><a href="#lambda-error-sns-sender.LambdaErrorSnsSenderProps.property.tags">tags</a></code> | <code>{[ key: string ]: string}</code> | Stack tags that will be applied to all the taggable resources and the stack itself. |

##### `suppressTemplateIndentation`<sup>Optional</sup> <a name="suppressTemplateIndentation" id="lambda-error-sns-sender.LambdaErrorSnsSenderProps.property.suppressTemplateIndentation"></a>
```typescript
public readonly suppressTemplateIndentation: boolean;
```
- *Type:* boolean
- *Default:* the value of `@aws-cdk/core:suppressTemplateIndentation`, or `false` if that is not set.
Enable this flag to suppress indentation in generated CloudFormation templates.
If not specified, the value of the `@aws-cdk/core:suppressTemplateIndentation`
context key will be used. If that is not specified, then the
default value `false` will be used.
---
##### `synthesizer`<sup>Optional</sup> <a name="synthesizer" id="lambda-error-sns-sender.LambdaErrorSnsSenderProps.property.synthesizer"></a>

@@ -309,0 +291,0 @@

@@ -1,1 +0,9 @@

# replace this
# Lambda Error SNS Sender
## A simple solution to improve the CloudWatch alarm to receive Lambda error details by email. Available as CDK construct or as CloudFormation.
How does it work:
* Lambda is subscribed to the SNS topic where you receive your alarms. There is a message body subscription filter that limits errors based on the Lambda error metric. If you defied your metic in some other way, not the default one, you will have to change that filter.
* Lambda analyzes the message, finds a log of the failed Lambda, and queries the log for the period that the metic was configured, plus some additional safety time, so we do not miss that error message. It extracts just a number of errors that can fit in one SNS message.
-Lambda sends errors to the same SNS you use for alerts. So apart from the common Alarm message, you will receive an additional one with error messages.

@@ -58,4 +58,4 @@ "use strict";

_a = JSII_RTTI_SYMBOL_1;
LambdaErrorSnsSender[_a] = { fqn: "lambda-error-sns-sender.LambdaErrorSnsSender", version: "0.0.37" };
LambdaErrorSnsSender[_a] = { fqn: "lambda-error-sns-sender.LambdaErrorSnsSender", version: "0.0.38" };
exports.LambdaErrorSnsSender = LambdaErrorSnsSender;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw2QkFBNkI7QUFDN0IsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUMzQyxpREFBaUQ7QUFDakQsMkNBQTJDO0FBRTNDLGtFQUFrRTtBQUNsRSwyQ0FBdUM7QUFVdkMsTUFBYSxvQkFBcUIsU0FBUSxzQkFBUztJQUNqRCxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWdDO1FBQ3hFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsSUFBSSxDQUFDLEtBQUssQ0FBQyxTQUFTLElBQUksS0FBSyxFQUFFLFNBQVMsQ0FBQyxNQUFNLEtBQUssQ0FBQyxFQUFFO1lBQ3JELE1BQU0sSUFBSSxLQU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SxcbiAgICAgICAgTmFtZXNwYWNlOiBzbnMuRmlsdGVyT3JQb2xpY3kuZmlsdGVyKFxuICAgICAgICAgIHNucy5TdWJzY3JpcHRpb25GaWx0ZXIuc3RyaW5nRmlsdGVyKHtcbiAgICAgICAgICAgIGFsbG93bGlzdDogWydBV1MvTGFtYmRhJ10sXG4gICAgICAgICAgfSksXG4gICAgICAgICksXG4gICAgICAgIFN0YXRpc3RpY1R5cGU6IHNucy5GaWx0ZXJPclBvbGljeS5maWx0ZXIoXG4gICAgICAgICAgc25zLlN1YnNjcmlwdGlvbkZpbHRlci5zdHJpbmdGaWx0ZXIoe1xuICAgICAgICAgICAgYWxsb3dsaXN0OiBbJ1N0YXRpc3RpYyddLFxuICAgICAgICAgIH0pLFxuICAgICAgICApLFxuICAgICAgICBTdGF0aXN0aWM6IHNucy5GaWx0ZXJPclBvbGljeS5maWx0ZXIoXG4gICAgICAgICAgc25zLlN1YnNjcmlwdGlvbkZpbHRlci5zdHJpbmdGaWx0ZXIoe1xuICAgICAgICAgICAgYWxsb3dsaXN0OiBbJ1NVTSddLFxuICAgICAgICAgIH0pLFxuICAgICAgICApLFxuICAgICAgfTtcblxuICAgICAgc25zVG9waWMuYWRkU3Vic2NyaXB0aW9uKFxuICAgICAgICBuZXcgc3Vic2NyaXB0aW9uLkxhbWJkYVN1YnNjcmlwdGlvbihzbnNFcnJvckZ1bmMsIHtcbiAgICAgICAgICBmaWx0ZXJQb2xpY3lXaXRoTWVzc2FnZUJvZHk6IHtcbiAgICAgICAgICAgIFRyaWdnZXI6IHNucy5GaWx0ZXJPclBvbGljeS5wb2xpY3kocHJvcHMuZmlsdGVyID8/IGRlZmF1bHRGaWx0ZXIpLFxuICAgICAgICAgIH0sXG4gICAgICAgIH0pLFxuICAgICAgKTtcblxuICAgICAgc25zVG9waWMuZ3JhbnRQdWJsaXNoKHNuc0Vycm9yRnVuYyk7XG4gICAgfVxuICB9XG59XG4iXX0=

@@ -46,3 +46,3 @@ {

"@typescript-eslint/parser": "^5",
"aws-cdk-lib": "2.91.0",
"aws-cdk-lib": "2.70.0",
"constructs": "10.0.5",

@@ -70,3 +70,3 @@ "esbuild": "^0.19.2",

"peerDependencies": {
"aws-cdk-lib": "^2.91.0",
"aws-cdk-lib": "^2.70.0",
"constructs": "^10.0.5"

@@ -89,3 +89,3 @@ },

"license": "Apache-2.0",
"version": "0.0.37",
"version": "0.0.38",
"types": "lib/index.d.ts",

@@ -92,0 +92,0 @@ "stability": "stable",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet