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

Commit

Permalink
Fixes deployment to production stage.
Browse files Browse the repository at this point in the history
  • Loading branch information
ognjenb committed Jun 20, 2018
1 parent 5375e8e commit de50a67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit de50a67

Please sign in to comment.