If you are using AWS CLI, than you have to set your credentials first. To set credentials use the below command.
$ aws configure
If it is showing the same error, than check your Machine time and sync with standard time.
Hope it will solve your doubt.