AWS SES API support

master
Steven Zhu 2023-07-04 22:10:04 -04:00
parent 1d637134ba
commit ffe78e2ab4
1 changed files with 33 additions and 0 deletions

@ -639,4 +639,37 @@ Here are the step to configure Gchat notify:
`acme.sh --set-notify --notify-hook gchat` `acme.sh --set-notify --notify-hook gchat`
## 23. Set notification for AWS SES (API)
Uses AWS SES API (rather than SMTP credentials).
You'll need to setup a API user with the following security permissions to send email.
```
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ses:SendEmail",
"ses:SendRawEmail",
"ses:SendBulkEmail"
],
"Resource": "*"
}
]
}
```
Usage:
```sh
export AWS_SES_ACCESS_KEY_ID="sdfsdfsdfljlbjkljlkjsdfoiwje"
export AWS_SES_SECRET_ACCESS_KEY="xxxxxxxxxxxxxx"
# Use the REGION column from the table
# https://docs.aws.amazon.com/general/latest/gr/ses.html
export AWS_SES_REGION="xx-xxxx-x"
export AWS_SES_TO="xxx@xxx.xxx"
export AWS_SES_FROM="xxx@xxx.xxx"
# Custom name other than the email FROM address configured above (optional).
export AWS_SES_FROM_NAME="Something"
acme.sh --set-notify --notify-hook aws_ses
```