LoginSignup
6
0

More than 3 years have passed since last update.

Dockerコンテナ上のaws-cli環境でAWS Error Message: Signature expiredが表示されたときの対処方法

Last updated at Posted at 2020-04-03

はじめに

dockerコンテナ上のaws-cli環境でaws sts get-caller-identityをしたら、時間がずれてるとおこられたので、また起きた時用メモ。

どうしてかわかんないけど、こうなった

① An error occurred

root@xxxxxxx:/home# aws sts get-caller-identity
An error occurred (SignatureDoesNotMatch) when calling the GetCallerIdentity dentity operation: Signature expired: 20200323T231737Z is now earlier200324T0 than 20200324T002325Z (20200324T003825Z - 15 min.)

② 本当にずれてるのか確認してみる。ちなみにこの時午前10時ちょっと前。

root@xxxxxxx:/home# date
Fri Apr 02 23:30:39 UTC 2020

③ UTCだとよく分からないからJSTに変えてみる。

root@xxxxxxx:/home# TZ=-9 date '+%a %b %d %H:%M:%S JST %Y'
root@xxxxxxx:/home# date 
Fri Apr 03 08:33:30 JST 2020

ずれてた。1時間半も。

修正方法

1. 検索ボックスに「Hyper-V マネージャー」を入力して選択。

hyper-v manager01




2. DockerDesktop VM の「設定」を選択
hyper-v manager02




3. 管理 の 統合サービスを選択して「時刻の同期」にチェックを入れる。
(※もともとチェックが入っている時は一度外して適用。その後チェックを入れてもう一度適用。)

hyper-v manager03




おわりに

この後、エラーが消えて解決!めでたし!

6
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
0