https://github.com/guerrerocarlos/aws-ses-emailparser
https://github.com/guerrerocarlos/aws-ses-emailparser
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/guerrerocarlos/aws-ses-emailparser
- Owner: guerrerocarlos
- Created: 2021-10-07T12:27:57.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-07T12:37:53.000Z (over 3 years ago)
- Last Synced: 2025-01-07T18:33:06.618Z (5 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# How to
## Requirements
- Have AWS SES configured with your domain
- Create a bucket in AWS S3
- Add this policy to the bucket, replace BUCKET_NAME and YOUR_ACCOUNT_ID with yours:```
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowSESPuts-1501162912388",
"Effect": "Allow",
"Principal": {
"Service": "ses.amazonaws.com"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::BUCKET_NAME/*",
"Condition": {
"StringEquals": {
"aws:Referer": "YOUR_ACCOUNT_ID"
}
}
}
]
}
```# Configuration
The S3 bucket where AWS SES delivers the emails and the bucket where you want the attachments to be stored in the `config.js` file
# Deployment
## Deploy this serverless function
Execute:
> npm install
> serverless deploy## Go to AWS SES Management Console and setup a Rule Set
