@mapbox/cloudfriend
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -0,1 +1,5 @@ | ||
# v2.6.0 | ||
- Modifies CloudWatch alarm names to include the AWS region. | ||
## v2.5.0 | ||
@@ -2,0 +6,0 @@ |
@@ -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]<[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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
250133
58
1