![](/img/trans.png)
[英]Credential should be scoped to a valid region, not 'eu-west-1' using aws java sdk 1.11.618
[英]Credential should be scoped to a valid region, not 'us-west-1' using AWS SES
嘗試使用 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 控制台中執行某些操作,例如驗證電子郵件或其他什么?
看起來您不能將一個區域與另一個區域的端點一起使用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.