젠킨스 파이프라인 aws - Unable to locate credentials 해결

정상화·2024년 2월 27일
0

TIL

목록 보기
45/46

1. 젠킨스 사용자로 들어가기

su - jenkins해봤자 바로 터미널 세션이 꺼져버린다.

우분투 18 기준 아래 명령어로 젠킨스사용자로 터미널에 접속

root$ su -s /bin/bash jenkins
bash-4.2$ whoami
jenkins

2. aws 인증키 입력

bash-4.2$ aws configure
AWS Access Key ID [None]: ****
AWS Secret Access Key [None]: ****
Default region name [None]:
Default output format [None]:
bash-4.2$

3. aws 인증키가 jenkins사용자에서 잘 등록됐는지 확인

bash-4.2$ aws configure list
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key     ****************abcd shared-credentials-file
secret_key     ****************abcd shared-credentials-file
    region                <not set>             None    None
bash-4.2$ exit

해결

다시 빌드 파이프라인을 실행하면 제대로 돌아감

profile
백엔드 희망

0개의 댓글