Trying a send an email using SES using the us-west-2 service endpoint. My account is in us-west-1 so I specified that as the signing region:
AmazonSimpleEmailServiceClientBuilder builder
= AmazonSimpleEmailServiceClientBuilder.standard();
builder.setEndpointConfiguration
(new EndpointConfiguration("email.us-west-2.amazonaws.com", "us-west-1"));
I am getting this error:
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;
Any help appreciated.
EDIT Note that the signing region (where my account is) is us-west-1, whereas the endpoint is in us-west-2 as it should be. Could there be something I need to do in the AWS console first, like validate an email or something?
It simply looks like you can't use one region with endpoint of another region.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With