티스토리 뷰

5. 파이썬

AWS 파이참 SAM 설정

패스트코드블로그 2023. 1. 30. 12:51

https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

 

Installing or updating the latest version of the AWS CLI - AWS Command Line Interface

When updating from a previous version, the unzip command prompts to overwrite existing files. To skip these prompts, such as with script automation, use the -u update flag for unzip. This flag automatically updates existing files and creates new ones as ne

docs.aws.amazon.com

msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi

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

 

AWS SAM CLI 설치 - AWS Serverless Application Model

sam명령으로AWS SAM CLI를 호출하기 위해 설치 프로그램은 선택한 설치/usr/local/bin/sam 폴더와 둘 중 하나/usr/local/aws-sam-cli/sam 또는 선택한 설치 폴더 사이에 심볼릭 링크를 자동으로 생성합니다.

docs.aws.amazon.com

다운로드 후 설치

터미널 재실행 후 sam --version

 

 

 

 

on:
  push:
    branches:
      - main
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v3
      - uses: aws-actions/setup-sam@v2
      - uses: aws-actions/configure-aws-credentials@v1
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws-region: ap-northeast-2
      - run: sam build --use-container
      - run: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset --stack-name aws-sam-cli-managed-default --resolve-s3 --capabilities CAPABILITY_IAM

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/12   »
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 31
글 보관함