AWS SES送信時にAn error occurred (SignatureDoesNotMatch) when calling the SendEmail operation: Signature expired: * is now earlier than * (* – 5 min.)

現象

  • cliから以下を送信
    aws --region ap-northeast-3 ses send-email --to example@example.com --from info@mail.schoolbusit.com --subject 'this is test mail' --text 'aaaa'
  • 以下のエラー
    An error occurred (SignatureDoesNotMatch) when calling the SendEmail operation: Signature expired: * is now earlier than * (* – 5 min.)

原因

  • 実行端末の時刻のズレ

解決方法

・NTPの設定