Heesung Yang

[문제 해결] AWS was not able to validate the provided access credentials

현상

Traceback (most recent call last):
  File "./aws.py", line 19, in <module>
    {'Name': 'instance-state-name', 'Values': ['running']}
  File "/lib64/python3.6/site-packages/botocore/client.py", line 386, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/lib64/python3.6/site-packages/botocore/client.py", line 705, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials

원인

  • 시스템 시간 동기화가 되어 있지 않을 경우…!
    • 이 케이스인 경우가 생각보다 많으니 꼭 시스템 시간 체크를 해볼 것
  • Access key / Secret key 가 비활성화 또는 삭제 또는 틀릴 경우

해결 방안

  • 시스템 시간 동기화가 되어 있지 않을 경우 : 시간 동기화
  • Access key / Secret key 재발급

참고