I installed the ec2 api following the amazon guide. I setted up the access id and secret as environment variable.
Here it is my profile:
expor
I had a similar issue. The clock on my local server was off. I corrected it with the following command.
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
Then, aws worked.