aws 에러

이지훈·2022년 6월 29일
0

1. aws volume 확장

https://m.blog.naver.com/jogilsang/221370362752


처음 ec2 생성을 하면 기본 8기가로 생성이 된다.
/dev/root 에 용량이 다 찼을 때 위 처럼 따라하면 16기가 등으로 볼륨을 확장시킬 수 있다.


2. ec2서버와 m1 맥북간의 호환성

WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested


방법1.
로컬에서 build 시 --platform linux/amd64 명령어를 붙여줘야함

방법2.
docker-compose.yml에서 platform: linux/amd64 를 넣어줘야함


3. yaml 파일 인덴트 에러

ERROR: yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token

yaml 파일은 tap이 아닌 스페이스바로 인덴트를 설정한다.

tap 지우고 스페이스바로 띄어쓰기를 해줌


4. ecr 로그인 에러

aws ecr get-login --no-include-email --region ap-northeast-2 해도

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help

aws: error: argument operation: Invalid choice, valid choices are:

처럼 뜬다.

sudo aws ecr get-login --no-include-email --region ap-northeast-2

sudo를 붙여주고 macbook 비밀번호를 넣어주면 된다.
만약 Sorry, try again.가 뜬다면, 비밀번호를 한국어로 치고 있을 가능성도 있으니 영어로 바꿔서 쳐보자.


5. boto3, botocore 디펜던시 에러

https://stackoverflow.com/questions/51911075/how-to-check-awscli-and-compatible-botocore-package-is-installed


# Uninstall existing previous version of botocore and boto3
$ pip3 install awscli --upgrade --user

# And Install again
$ pip3 uninstall botocore
$ pip3 uninstall boto3

# reinstall
$ pip3 install botocore
$ pip3 install boto3
profile
꾸준하게 🐌

0개의 댓글