Skip to content

configure vars and secrets #2

configure vars and secrets

configure vars and secrets #2

Workflow file for this run

on:
push:
branches:
- main
jobs:
sam-deploy:
runs-on: ubuntu-latest
if: secrets.AWS_ACCESS_KEY_ID != '' && secrets.AWS_SECRET_ACCESS_KEY != ''

Check failure on line 8 in .github/workflows/deploy_lambda.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy_lambda.yml

Invalid workflow file

The workflow is not valid. .github/workflows/deploy_lambda.yml (Line: 8, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.AWS_ACCESS_KEY_ID != '' && secrets.AWS_SECRET_ACCESS_KEY != ''
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-unknown-linux-gnu
- name: Install Zig toolchain
uses: korandoru/setup-zig@v1
- name: Install Cargo Lambda
uses: jaxxstorm/[email protected]
with:
repo: cargo-lambda/cargo-lambda
platform: linux
arch: x86_64
- run: cargo lambda build --release --features lambda --arm64
- 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: ${{ vars.AWS_REGION }}
- run: |
cd deploy/aws_sam
sam deploy --parameter-overrides RustLog="${{ vars.RUST_LOG }}" PostgresUri="${{ secrets.POSTGRES_URI }}"