如果遇到 AWS SES 邮件没有发送到 S3 存储桶的问题,您可以尝试按以下步骤解决:
{
"LambdaFunctionConfigurations": [
{
"Id": "my-lambda-function",
"LambdaFunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:Example",
"Events": [
"s3:ObjectCreated:*"
],
"Filter": {
"Key": {
"FilterRules": [
{
"Name": "suffix",
"Value": ".jpg"
}
]
}
}
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "ses.amazonaws.com"
},
"Action": [
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::yourbucketname/*"
],
"Condition": {
"StringEquals": {
"aws:Referer": "your-aws-account-id"
}
}
},
{
"Effect": "Allow",
"Principal": {
"Service": "ses.amazonaws.com"
},
"Action": [
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::yourbucketname/email/*"
],
"Condition": {
"StringEquals": {
"aws:Referer": "your-aws-account-id"
}
}
}
]
}
{
"Version":"2012-10-17",
"Statement":[
{
"Effect":"Allow",
"Action":[
"s3:PutObject