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

@mapbox/cloudfriend

Package Overview
Dependencies
Maintainers
14
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/cloudfriend - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

lib/shortcuts/alarm.js

4

changelog.md

@@ -0,1 +1,5 @@

# v2.6.0
- Modifies CloudWatch alarm names to include the AWS region.
## v2.5.0

@@ -2,0 +6,0 @@

2

lib/shortcuts/api.md

@@ -68,3 +68,3 @@ <!-- Generated by documentation.js. Update this documentation by updating the source code. -->

defining the permissions that your Lambda function needs in order to execute. (optional, default `[]`)
- `options.AlarmName` **[String][31]** See [AWS documentation][50] (optional, default `'${stack name}-${logical name}-Errors'`)
- `options.AlarmName` **[String][31]** See [AWS documentation][50] (optional, default `'${stack name}-${logical name}-Errors-${region}'`)
- `options.AlarmDescription` **[String][31]** See [AWS documentation][51] (optional, default `'Error alarm for ${stack name}-${logical name} lambda function in ${stack name} stack'`)

@@ -71,0 +71,0 @@ - `options.AlarmActions` **[Array][43]&lt;[String][31]>** See [AWS documentation][52] (optional, default `[]`)

@@ -35,3 +35,3 @@ 'use strict';

* defining the permissions that your Lambda function needs in order to execute.
* @param {String} [options.AlarmName='${stack name}-${logical name}-Errors'] See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmname)
* @param {String} [options.AlarmName='${stack name}-${logical name}-Errors-${region}'] See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmname)
* @param {String} [options.AlarmDescription='Error alarm for ${stack name}-${logical name} lambda function in ${stack name} stack'] See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmdescription)

@@ -85,3 +85,3 @@ * @param {Array<String>} [options.AlarmActions=[]] See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmactions)

Statement = [],
AlarmName = { 'Fn::Sub': `\${AWS::StackName}-${LogicalName}-Errors` },
AlarmName = { 'Fn::Sub': `\${AWS::StackName}-${LogicalName}-Errors-\${AWS::Region}` },
AlarmDescription = {

@@ -88,0 +88,0 @@ 'Fn::Sub': [

{
"name": "@mapbox/cloudfriend",
"version": "2.5.0",
"version": "2.6.0",
"description": "Helper functions for assembling CloudFormation templates in JavaScript",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -232,3 +232,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors"
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors-${AWS::Region}"
},

@@ -343,3 +343,3 @@ "AlarmDescription": {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-Destination-Errors"
"Fn::Sub": "${AWS::StackName}-Destination-Errors-${AWS::Region}"
},

@@ -346,0 +346,0 @@ "AlarmDescription": {

@@ -235,3 +235,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors"
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors-${AWS::Region}"
},

@@ -346,3 +346,3 @@ "AlarmDescription": {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-Destination-Errors"
"Fn::Sub": "${AWS::StackName}-Destination-Errors-${AWS::Region}"
},

@@ -349,0 +349,0 @@ "AlarmDescription": {

@@ -217,3 +217,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors"
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors-${AWS::Region}"
},

@@ -330,3 +330,3 @@ "AlarmDescription": {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-Destination-Errors"
"Fn::Sub": "${AWS::StackName}-Destination-Errors-${AWS::Region}"
},

@@ -333,0 +333,0 @@ "AlarmDescription": {

@@ -217,3 +217,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors"
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors-${AWS::Region}"
},

@@ -328,3 +328,3 @@ "AlarmDescription": {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-Destination-Errors"
"Fn::Sub": "${AWS::StackName}-Destination-Errors-${AWS::Region}"
},

@@ -331,0 +331,0 @@ "AlarmDescription": {

@@ -217,3 +217,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors"
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors-${AWS::Region}"
},

@@ -328,3 +328,3 @@ "AlarmDescription": {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-Destination-Errors"
"Fn::Sub": "${AWS::StackName}-Destination-Errors-${AWS::Region}"
},

@@ -331,0 +331,0 @@ "AlarmDescription": {

@@ -217,3 +217,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors"
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors-${AWS::Region}"
},

@@ -328,3 +328,3 @@ "AlarmDescription": {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-Destination-Errors"
"Fn::Sub": "${AWS::StackName}-Destination-Errors-${AWS::Region}"
},

@@ -331,0 +331,0 @@ "AlarmDescription": {

@@ -217,3 +217,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors"
"Fn::Sub": "${AWS::StackName}-PassFunction-Errors-${AWS::Region}"
},

@@ -328,3 +328,3 @@ "AlarmDescription": {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-Destination-Errors"
"Fn::Sub": "${AWS::StackName}-Destination-Errors-${AWS::Region}"
},

@@ -331,0 +331,0 @@ "AlarmDescription": {

@@ -88,3 +88,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors"
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors-${AWS::Region}"
},

@@ -91,0 +91,0 @@ "AlarmDescription": {

@@ -87,3 +87,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors"
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors-${AWS::Region}"
},

@@ -90,0 +90,0 @@ "AlarmDescription": {

@@ -108,3 +108,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors"
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors-${AWS::Region}"
},

@@ -111,0 +111,0 @@ "AlarmDescription": {

@@ -88,3 +88,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors"
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors-${AWS::Region}"
},

@@ -91,0 +91,0 @@ "AlarmDescription": {

@@ -88,3 +88,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors"
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors-${AWS::Region}"
},

@@ -91,0 +91,0 @@ "AlarmDescription": {

@@ -112,3 +112,3 @@ {

"AlarmName": {
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors"
"Fn::Sub": "${AWS::StackName}-MyLambda-Errors-${AWS::Region}"
},

@@ -115,0 +115,0 @@ "AlarmDescription": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc