Aws::SQS::Errors::SignatureDoesNotMatch: Signature expired: 20160304T025839Z is now earlier than 20160304T030120Z (20160304T031620Z - 15 min.)
デプロイ時に突然エラー あれ?と思ったらサーバーの時間がずれていることが原因だった。。
日本時間にサーバーを修正
chefレシピをベタッと
execute "/etc/localtime" do command "cp -p /usr/share/zoneinfo/Japan /etc/localtime" end package "ntp" service "ntpd" do action [:enable, :start] supports :start => true, :status => true, :restart => true, :reload => true end template "/etc/ntp.conf" do source "ntp.conf.erb" owner "root" group "root" mode 0644 notifies :restart, "service[ntpd]" end
ntp.conf
# server 0.centos.pool.ntp.org iburst # server 1.centos.pool.ntp.org iburst # server 2.centos.pool.ntp.org iburst # server 3.centos.pool.ntp.org iburst server -4 ntp.nict.jp server -4 ntp1.jst.mfeed.ad.jp server -4 ntp2.jst.mfeed.ad.jp server -4 ntp3.jst.mfeed.ad.jp