Infra/AWS

[삽질] aws-sam-cli 설치하기 on MacOS

하우아유두잉 2019. 8. 27. 13:29

 

 

 

 

https://docs.aws.amazon.com/ko_kr/serverless-application-model/latest/developerguide/serverless-sam-cli-install-mac.html

 

Installing the AWS SAM CLI on macOS - AWS Serverless Application Model

Installing the AWS SAM CLI on macOS The following steps help you to install and configure the required prerequisites for using the AWS SAM CLI on your macOS host: Create an AWS account. Configure IAM permissions. Install the AWS CLI. Create an Amazon S3 bu

docs.aws.amazon.com

$ brew install aws-sam-cli

링크 에러가 떴다.

 

링크 제거도 안된다.

 

 

 

저번에 기본 파이썬을 2.7에서 3.7로 바꿨는데.. 그거때문인가 싶어서

 

파이프로 설치를 해보았다.

 

 

$ pip3 install aws-sam-cli

 

 

이곳저곳 에러가 뜨면서 설치에 실패한다..

 

그래서 python2.7를 다시 깔고,, 초기화도 시도해보았지만 실패했다.

 

다시 원점.

 

 

python@2폴더를 제거한다.

 

 

brew로 다시 설치를 시도해본다.

성공...

 

'sam'이 실행된다.



하.. 2시간 가량 삽질했네.. ㅎㅎ

 

 

이제 다시 하던 작업을 이어나가보자..

https://github.com/aws-samples/simple-websockets-chat-app

 

aws-samples/simple-websockets-chat-app

This SAM application provides the Lambda functions, DynamoDB table, and roles to allow you to build a simple chat application based on API Gateway's new WebSocket-based API feature. - aws-samp...

github.com