AWS SAM CLI 설치
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html
Installing the AWS SAM CLI - AWS Serverless Application Model
Starting with AWS SAM CLI v1.70.1, running aws/tap is no longer needed due to a change with the homebrew-core library. To install AWS SAM CLI v1.70.1 or newer, we recommend running brew install aws/tap/aws-sam-cli instead.
docs.aws.amazon.com
공식문서를 참고하여 진행
필자는 mac OS 환경에서 진행
1. 본인 mac 의 운영체제에 맞게 .pkg를 다운로드 받음
2. 무결성과 신뢰성 확인
- 경로 확인하여 진행해야함
- myUser는 다를 수 있음
shasum -a 256 path-to-pkg-installer/name-of-pkg-installer
# Examples
shasum -a 256 /Users/myUser/Downloads/aws-sam-cli-macos-arm64.pkg
shasum -a 256 /Users/myUser/Downloads/aws-sam-cli-macos-x86_64.pkg
3. AWS SAM CLI 설치확인 및 Symlink 가 구성 되었는지 확인
$ which sam
/usr/local/bin/sam
$ sam --version
SAM CLI, version 1.66.0
AWS SAM CLI 실습 - Hello World 애플리케이션 배포
*** Hello world 어플리케이션 생성을 위한 명령어 ***
#Step 1 - Download a sample application
sam init
#Step 2 - Build your application
cd sam-app
sam build
#Step 3 - Deploy your application
sam deploy --guided
sam build 시 오류
Error: PythonPipBuilder:Validation - Binary validation failed for python ~~~
=> python 3.9 를 찾지못하고 있음
=> python 3.9 설치 및 기본 값으로 설정
아래 두 링크 참고
[MacOS] M1 python3 설치하기
사전 설치 2021.11.04 - [MacOS] - [MacOS] Git 설치하기 위 글에서 brew는 꼭 설치 되어야 합니다! 만약, bash에 대해 궁금하시다면 아래 글을 참고하세요 2021.11.15 - [OS/Linux] - [Linux] source 명령어와 bash에 대해
imksh.com
https://jjam89.tistory.com/228
[Mac] python 설치하기
요즘 러시아와 우크라이나 관련 일이 많이 터지는 듯 합니다. 관련하여 도움이 될 순 없을까... 할 적에 개발로서 도움이 될 수 있는 좋은 기회를 가지게 되었습니다. 그런데 해당 프로젝트가 pyth
jjam89.tistory.com
sam deploy --guided 기본값 사용
Create Failed 오류
1. access 오류
Resource handler returned message: "Access denied for operation 'CREATE'."
-> 권한 오류 (조직 담당자의 권한 허가로 해결)
'DevOps > DevOps' 카테고리의 다른 글
ArgoCD 란? (0) | 2023.08.17 |
---|---|
CI/CD 툴 종류 및 비교 (Jenkins, AWS CodeBuild, ArgoCD, Github Actions) (0) | 2023.08.17 |
도메인 주도 설계 (DDD, Domain-Driven Design, 분산화 응용 프로그램 설계, 마이크로서비스, miro) (1) | 2023.02.16 |
독립적 서비스 구성 - AWS Lambda, API Gateway (0) | 2023.02.02 |
API 디자인, 프로세스 간 통신(Inter-process communication, IPC ,마이크로서비스 간의 통신) (1) | 2023.02.01 |