@liflig/cdk 2.14.0 → 2.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,7 +44,7 @@ def send_slack_notification(message, region):
|
|
|
44
44
|
{'title': 'Project', 'value': PROJECT_NAME, 'short': True},
|
|
45
45
|
{'title': 'Environment', 'value': ENVIRONMENT_NAME, 'short': True},
|
|
46
46
|
{'title': 'State Transition',
|
|
47
|
-
'value': message
|
|
47
|
+
'value': message.get('OldStateValue', 'Unknown') + ' -> ' + message['NewStateValue'], 'short': False},
|
|
48
48
|
{'title': 'Link to Alarm', 'value': "https://console.aws.amazon.com/cloudwatch/home?region=" +
|
|
49
49
|
region + "#alarm:alarmFilter=ANY;name=" + message['AlarmName'], "short": False},
|
|
50
50
|
]
|
|
@@ -64,7 +64,6 @@ def send_slack_notification(message, region):
|
|
|
64
64
|
response.read()
|
|
65
65
|
return "Message posted to: " + slackMessage['channel']
|
|
66
66
|
except HTTPError as e:
|
|
67
|
-
raise Exception("Request to slack failed: "
|
|
68
|
-
e.code + " " + e.reason)
|
|
67
|
+
raise Exception(f"Request to slack failed: {e.code} {e.reason}")
|
|
69
68
|
except URLError as e:
|
|
70
|
-
raise Exception("Server connection to slack failed:
|
|
69
|
+
raise Exception(f"Server connection to slack failed: {e.reason}")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liflig/cdk",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.1",
|
|
4
4
|
"description": "CDK library for Liflig",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,27 +35,27 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@aws-cdk/assert": "2.68.0",
|
|
38
|
-
"@commitlint/cli": "17.6.
|
|
39
|
-
"@commitlint/config-conventional": "17.6.
|
|
38
|
+
"@commitlint/cli": "17.6.7",
|
|
39
|
+
"@commitlint/config-conventional": "17.6.7",
|
|
40
40
|
"@types/aws-lambda": "8.10.119",
|
|
41
|
-
"@types/jest": "29.5.
|
|
42
|
-
"@types/node": "18.
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
44
|
-
"@typescript-eslint/parser": "5.
|
|
45
|
-
"aws-cdk": "2.
|
|
46
|
-
"aws-cdk-lib": "2.
|
|
47
|
-
"constructs": "10.2.
|
|
48
|
-
"eslint": "8.
|
|
49
|
-
"eslint-config-prettier": "8.
|
|
41
|
+
"@types/jest": "29.5.3",
|
|
42
|
+
"@types/node": "18.17.2",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
44
|
+
"@typescript-eslint/parser": "5.62.0",
|
|
45
|
+
"aws-cdk": "2.86.0",
|
|
46
|
+
"aws-cdk-lib": "2.86.0",
|
|
47
|
+
"constructs": "10.2.69",
|
|
48
|
+
"eslint": "8.46.0",
|
|
49
|
+
"eslint-config-prettier": "8.10.0",
|
|
50
50
|
"eslint-plugin-prettier": "4.2.1",
|
|
51
51
|
"husky": "8.0.3",
|
|
52
|
-
"jest": "29.
|
|
52
|
+
"jest": "29.6.2",
|
|
53
53
|
"jest-cdk-snapshot": "2.0.1",
|
|
54
54
|
"prettier": "2.8.8",
|
|
55
|
-
"semantic-release": "21.0.
|
|
56
|
-
"ts-jest": "29.1.
|
|
55
|
+
"semantic-release": "21.0.7",
|
|
56
|
+
"ts-jest": "29.1.1",
|
|
57
57
|
"ts-node": "10.9.1",
|
|
58
|
-
"typescript": "5.1.
|
|
58
|
+
"typescript": "5.1.6"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@capraconsulting/webapp-deploy-lambda": "2.1.2",
|