AWS CLIで’A client error (AuthFailure) occurred when calling the~'なら時刻ずれが怪しい


1年ほど問題なく使えていたaws cli環境で突然エラーが発生。
必ず発生する訳ではなく、もう一度実行すると成功したりする。

$ aws ec2 create-image (以下略)
A client error (AuthFailure) occurred when calling the DescribeImages operation: AWS was not able to validate the provided access credentials

最初は認証関連を疑ったけどググッたら時刻ずれで発生するとのこと。
確認したらNTP間違って5分ほどずれていた。NTP修正することで復旧した。

ちなみにバージョンは

$ aws --version                                                                                  
aws-cli/1.8.13 Python/2.7.5 Linux/3.10.0-229.14.1.el7.x86_64