Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

Commit 0de0291

Browse files
committed
fix: use environment variables for notifications
1 parent 1b63218 commit 0de0291

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

serverless.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,26 @@ custom:
3333
webpack:
3434
webpackConfig: ./webpack.config.js
3535
includeModules: true
36-
notification:
36+
notification: # serverless-plugin-notification-ojongerius
3737
webhook:
3838
url: ${env:GITTER_WEBHOOK}
39-
notifications:
39+
aws-notifications:
4040
- protocol email
41-
41+
endpoint ${env:SERVERLESS_EMAIL_NOTIFICATIONS}
4242
- protocol https # Announce on Gitter
43-
endpoint https://webhooks.gitter.im/e/957145b550e13c6d3a80
43+
endpoint ${env:GITTER_WEBHOOK}
4444
alerts:
4545
stages: # Optionally - select which stages to deploy alarms to
4646
- production
4747
- staging
4848
dashboards: true
4949
topics:
5050
ok: ${self:service}-${opt:stage}-alerts-ok
51-
notifications: ${self:custom.notifications}
51+
notifications: ${self:custom.aws-notifications}
5252
alarm: ${self:service}-${opt:stage}-alerts-alarm
53-
notifications: ${self:custom.notifications}
53+
notifications: ${self:custom.aws-notifications}
5454
insufficientData: ${self:service}-${opt:stage}-alerts-insufficientData
55-
notifications: ${self:custom.notifications}
55+
notifications: ${self:custom.aws-notifications}
5656
alarms:
5757
- functionThrottles
5858
- functionErrors

0 commit comments

Comments
 (0)