Simply calling aws ses list-receipt-rule-sets
returns unknown error.
Tested with my work and personal IAM user. Both using access token. Below request/response is tested using my work account.
message:
An error occurred (InvalidAction) when calling the ListReceiptRuleSets operation: Unknown
request:
2023-07-05 18:35:28,309 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://email.ap-northeast-1.amazonaws.com/, headers={'Content-Type': b'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': b'aws-cli/2.12.6 Python/3.11.4 Darwin/22.5.0 source/arm64 prompt/off command/ses.list-receipt-rule-sets', 'X-Amz-Date': b'20230705T093528Z', 'X-Amz-Security-Token': b'...', 'Content-Length': '45'}>
response:
2023-07-05 18:35:28,381 - MainThread - botocore.parsers - DEBUG - Response headers: {'Date': 'Wed, 05 Jul 2023 09:35:28 GMT', 'Content-Type': 'text/xml', 'Content-Length': '220', 'Connection': 'keep-alive', 'x-amzn-RequestId': '18995716-95ec-4c40-b6c9-3044cddc29c5'}
2023-07-05 18:35:28,381 - MainThread - botocore.parsers - DEBUG - Response body:
b'<ErrorResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">\n <Error>\n <Type>Sender</Type>\n <Code>InvalidAction</Code>\n </Error>\n <RequestId>18995716-95ec-4c40-b6c9-3044cddc29c5</RequestId>\n</ErrorResponse>\n'
At least for my work account there is SES service used for production in that region.
There are several report for this issue since 2020: