[当我不使用AWS SES时,以下代码运行良好
const AWS = require('aws-sdk');
AWS.config.update({region: 'ap-northeast-2'});
const s3 = new AWS.S3({apiVersion: '2006-03-01'});
但是在我添加带有ap-southeast-2端点(悉尼)的SES代码之后,突然不使用凭据应将作用域限定为有效区域,而不是'ap-northeast-2'错误消息
const ses = new AWS.SES({
apiVersion: '2010-12-01',
endpoint: 'https://email.ap-southeast-2.amazonaws.com'
});
有什么解决方法吗?请给我一些帮助
我在构造对象时添加了区域字段它完美地工作。
const ses = new AWS.SES({
region: 'ap-southeast-2'
});