Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Ogi/production staging fix for #2 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ After deploying, this service starts monitoring the provided URL and sends an e-

## Deployment
```
serverless deploy --fromEmail <sender's e-mail address> --toEmail <recipient's e-mail address> --url <URL to monitor> --stage <dev|prod>
serverless deploy --fromEmail <sender's e-mail address> --toEmail <recipient's e-mail address> --url <URL to monitor> --stage <dev|production>
```

## Clean slate

```
serverless remove --fromEmail < sender's e-mail address > --toEmail < recipient's e-mail address > --url < URL to monitor > --stage <dev|prod>
serverless remove --fromEmail < sender's e-mail address > --toEmail < recipient's e-mail address > --url < URL to monitor > --stage <dev|production>
```

Note:
Expand Down
6 changes: 3 additions & 3 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ functions:
events:
- schedule:
rate: rate(1 minute)
enabled: false
enabled: true

plugins:
- serverless-plugin-aws-alerts
Expand All @@ -63,7 +63,7 @@ custom:
- sns
- Ref: AWS::Region
- Ref: AWS::AccountId
topicName: monitoringTopic
topicName: monitoringTopic-${opt:stage}
topicArn:
Fn::Join:
- ":"
Expand Down Expand Up @@ -95,7 +95,7 @@ custom:
- dev
topics:
alarm:
topic: ${self:service}-alerts-alarm
topic: ${self:service}-${opt:stage}-alerts-alarm
notifications:
- protocol: email
endpoint: ${opt:toEmail}
Expand Down