-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from nsano-rururu/aws_ses
Add support for AWS SES
- Loading branch information
Showing
3 changed files
with
166 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1735,6 +1735,65 @@ Example usage:: | |
Environment: '$VAR' # environment variable | ||
Message: { field: message } # field in the first match | ||
|
||
AWS SES | ||
~~~~~~~ | ||
|
||
The AWS SES alerter is similar to Email alerter but uses AWS SES to send emails. The AWS SES alerter can use AWS credentials | ||
from the rule yaml, standard AWS config files or environment variables. | ||
|
||
AWS SES requires one option: | ||
|
||
``ses_email``: An address or list of addresses to sent the alert to. | ||
|
||
``ses_from_addr``: This sets the From header in the email. | ||
|
||
Optional: | ||
|
||
``ses_aws_access_key``: An access key to connect to AWS SES with. | ||
|
||
``ses_aws_secret_key``: The secret key associated with the access key. | ||
|
||
``ses_aws_region``: The AWS region in which the AWS SES resource is located. Default is us-east-1 | ||
|
||
``ses_aws_profile``: The AWS profile to use. If none specified, the default will be used. | ||
|
||
``ses_email_reply_to``: This sets the Reply-To header in the email. | ||
|
||
``ses_cc``: This adds the CC emails to the list of recipients. By default, this is left empty. | ||
|
||
``ses_bcc``: This adds the BCC emails to the list of recipients but does not show up in the email message. By default, this is left empty. | ||
|
||
Example When not using aws_profile usage:: | ||
|
||
alert: | ||
- "ses" | ||
ses_aws_access_key_id: "XXXXXXXXXXXXXXXXXX'" | ||
ses_aws_secret_access_key: "YYYYYYYYYYYYYYYYYYYY" | ||
ses_aws_region: "us-east-1" | ||
ses_from_addr: "[email protected]" | ||
ses_email: "[email protected]" | ||
|
||
Example When to use aws_profile usage:: | ||
|
||
# Create ~/.aws/credentials | ||
|
||
[default] | ||
aws_access_key_id = xxxxxxxxxxxxxxxxxxxx | ||
aws_secret_access_key = yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy | ||
|
||
# Create ~/.aws/config | ||
|
||
[default] | ||
region = us-east-1 | ||
|
||
# alert rule setting | ||
|
||
alert: | ||
- "ses" | ||
ses_aws_profile: "default" | ||
ses_from_addr: "[email protected]" | ||
ses_email: "[email protected]" | ||
|
||
AWS SNS | ||
~~~~~~~ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters