Aws::SQS::Errors::SignatureDoesNotMatchのエラー解消方法

急にAws::SQS::Errors::SignatureDoesNotMatchが出てwebrickが起動できなくなりました。

/home/vagrant/app/vendor/bundle/ruby/2.2.0/gems/aws-sdk-core-2.2.5/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call': Signature expi$
ed: 20160104T065705Z is now earlier than 20160104T065845Z (20160104T071345Z - 15 min.) (Aws::SQS::Errors::SignatureDoesNotMatch)
        from /home/vagrant/app/vendor/bundle/ruby/2.2.0/gems/aws-sdk-core-2.2.5/lib/aws-sdk-core/plugins/param_converter.rb:20:in `call'
        from /home/vagrant/app/vendor/bundle/ruby/2.2.0/gems/aws-sdk-core-2.2.5/lib/seahorse/client/plugins/response_target.rb:21:in `call'
        from /home/vagrant/app/vendor/bundle/ruby/2.2.0/gems/aws-sdk-core-2.2.5/lib/seahorse/client/request.rb:70:in `send_request'
        from /home/vagrant/app/vendor/bundle/ruby/2.2.0/gems/aws-sdk-core-2.2.5/lib/seahorse/client/base.rb:207:in `block (2 levels) in define_opera$
ion_methods'

原因は20160104T065705Z is now earlier than 20160104T065845Zとあるように時刻のずれでした。

$ date
2016年  1月  4日 月曜日 15:58:33 JST
$ sudo ntpdate ntp.nict.jp
 4 Jan 16:18:34 ntpdate[28994]: step time server 133.243.238.164 offset 1000.144849 sec
$ date
2016年  1月  4日 月曜日 16:18:38 JST

として修正したら起動できるようになりました。