티스토리 뷰

CLOUD/AWS

aws cli v2 경로 이슈

헐리 2024. 5. 28. 11:26

when i installed aws-cli with default install script that aws provides, the symbolic link is created at /usr/bin/aws. when i command 'which aws', it shows /bin/aws and i got error when executing aws cli So i want to execute the aws from /usr/bin/aws as default

 

which aws
ls -l /bin/aws
ls -l /usr/bin/aws

#If /bin/aws exists and is causing a conflict, you can remove or rename it.
sudo rm /bin/aws

#If /usr/bin/aws doesn't already point to the AWS CLI installation, create a new symbolic link.
sudo ln -s /usr/local/bin/aws /usr/bin/aws

#환경변수 편집
vim ~/.bash_profile

# 다음 내용 추가
export PATH=/usr/bin:$PATH

'CLOUD > AWS' 카테고리의 다른 글

Bedrock 개요 및 사용법  (0) 2024.08.13
[AWS] ECS 네트워크 모드  (0) 2024.05.02
[AWS] EKS (Amazon Kubernetes) 구성요소  (0) 2022.09.12
[AWS/Terraform] IAM, instance profile 구성  (0) 2022.09.11
[AWS] Lambda  (0) 2022.09.07
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함