|
@@ -48,9 +48,12 @@ second.
|
|
|
1. Configure an SNS topic.
|
|
|
2. Subscribe to the SNS topic using your email address.
|
|
|
3. Grant your lanbda function `sns:Publish` permission.
|
|
|
-4. Set the environment variable `sns_error_topic` to your SNS topic's arn.
|
|
|
-5. Add `from sns_error_notification import sns_error_notification` to your handler.
|
|
|
-6. Add the line `@sns_error_notification` directly before your handler function.
|
|
|
+4. Set the environment variable `sns_error_topic` to your SNS topic's arn.
|
|
|
+5. (Optional) Add the environment variable `sns_notifications_enabled` and set
|
|
|
+ to either the string `true` or `false` to quickly enable or disable email
|
|
|
+ notifications without code changes.
|
|
|
+6. Add `from sns_error_notification import sns_error_notification` to your handler.
|
|
|
+7. Add the line `@sns_error_notification` directly before your handler function.
|
|
|
|
|
|
See the example.py for an example.
|
|
|
|