도커 설치
도커 설치 링크
Window WSL 2 Error
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.9"
- 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
# Build inside Docker containers
- run: sam build --use-container
# Prevent p
- run: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset
Globals:
Function:
Timeout: 60 # 로컬 테스트를 위해 늘려줌
Tracing: Active
Api:
Cors:
AllowMethods: "'*'"
AllowHeaders: "'*'"
AllowOrigin: "'*'"
sam build
sam local start-api
http://127.0.0.1:3000/list