Created
December 16, 2025 15:21
-
-
Save bdunnette/71f2168509e013f4928b8d4531cd391d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to AWS Lambda Dev environment | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Configure AWS Credentials | |
| run: | | |
| source .venv/bin/activate | |
| aws configure set region us-east-1 | |
| aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID | |
| aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY | |
| aws configure set output json | |
| aws configure list | |
| - name: Deploy to AWS Lambda | |
| run: uv run zappa update dev | |
| - name: Run Database Migrations | |
| run: uv run zappa manage dev migrate | |
| - name: Verify Deployment | |
| run: uv run zappa status dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment