使用us-west-2服务端点尝试使用SES发送电子邮件。我的帐户位于us-west-1,因此我将其指定为签名区域:
AmazonSimpleEmailServiceClientBuilder builder
= AmazonSimpleEmailServiceClientBuilder.standard();
builder.setEndpointConfiguration
(new EndpointConfiguration("email.us-west-2.amazonaws.com", "us-west-1"));
我收到此错误:
com.amazonaws.services.simpleemail.model.AmazonSimpleEmailServiceException: Credential should be scoped to a valid region, not 'us-west-1'. (Service: AmazonSimpleEmailService; Status Code: 403; Error Code: SignatureDoesNotMatch;
任何帮助表示感谢。
修改 请注意,签名区域(我的帐户所在的位置)是us-west-1,而端点位于us-west-2中。我可能首先需要在AWS控制台中执行某些操作,例如验证电子邮件或其他内容吗?