diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b1fb9f..8d8b396 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## NOT RELEASED +## 1.1.1 + +### Fixed + +- Fix invalid signature in SES client because of wrong Scoped Service. + ## 1.1.0 ### Deprecation diff --git a/src/SesClient.php b/src/SesClient.php index f9dd7be..63c9f4a 100644 --- a/src/SesClient.php +++ b/src/SesClient.php @@ -51,21 +51,21 @@ protected function getEndpointMetadata(?string $region): array return [ 'endpoint' => "https://email.$region.amazonaws.com", 'signRegion' => $region, - 'signService' => 'email', + 'signService' => 'ses', 'signVersions' => ['v4'], ]; case 'us-gov-west-1': return [ 'endpoint' => "https://email.$region.amazonaws.com", 'signRegion' => $region, - 'signService' => 'email', + 'signService' => 'ses', 'signVersions' => ['v4'], ]; case 'fips-us-gov-west-1': return [ 'endpoint' => 'https://email-fips.us-gov-west-1.amazonaws.com', 'signRegion' => 'us-gov-west-1', - 'signService' => 'email', + 'signService' => 'ses', 'signVersions' => ['v4'], ]; }