【发布时间】:2021-08-27 09:48:49
【问题描述】:
我按照以下方式使用 node js simple sdk 将事件通知添加到 s3 存储桶 来自 ec2 实例。
var params={
Bucket: name,
NotificationConfiguration: {
QueueConfigurations: [],
TopicConfigurations: [],
LambdaFunctionConfigurations: [{
"Id": "enableS3EventForTransformCurLambda",
"LambdaFunctionArn": arn,
"Events": [ "s3:ObjectCreated:*" ],
"Filter": { "Key": { "FilterRules": [ { "Name": "Suffix", "Value": ".json" } ] } }
}
]
}
}
const notifevent = await s3.putBucketNotificationConfiguration(paramsNotif).promise();
现在我遇到错误
InvalidArgument: Unable to validate the following destination configurations
它构造正确的参数
【问题讨论】:
标签: node.js amazon-web-services amazon-s3 amazon-ec2