Photo by Athul Cyriac Ajay on Unsplash
aws cli error (An error occurred (AuthFailure) AWS was not able to validate the provided access credentials)
AWS/AWS Command Line Interface
- outline
Timestamp of Authentication tokens get failure because server time on local machine is out of sync.
- error message
An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials
- resolution (WSL, ubuntu)
## chrony
apt -y install chrony
systemctl start chrony
systemctl enable chrony
## hwclock
hwclock -s
echo hwclock -s >> .bashrc
## ntpdate
apt install ntpdate -y
ntpdate -sb time.bora.net
echo ntpdate -sb time.bora.net >> .bashrc