ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Backend Credential Error

    IaC/Terraform Error Case 2023. 9. 20. 01:11

     

     

    다음과 같은 에러가 발생하면

     

    Error: error configuring S3 Backend: 
    error validating provider credentials: 
    error calling sts:GetCallerIdentity: 
    InvalidClientTokenId: The security token included in the request is invalid.

     

    현재 설정된 backend가 위치한 클라우드의 storage에 대한 권한이 없는 상태이므로 발생하는 에러입니다.

     

    S3 backend의 경우, export AWS_PROFILE="YOUR PROFILE"이나 aws configure 명령어를 통한

    AWS profile의 설정을 하면 해결됩니다.

     

    Google Cloud Storage(GCS)의 경우,

    gcloud auth login을 통한 구글 인증 과정을 거치면 해결됩니다.

     

    마지막으로 Azure의 Blob backend의 경우,

    az login 명령어로 해당 storage의 권한을 가진 User나 App으로 로그인을 하면 해결됩니다.

Designed by Tistory.