-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 1.03 KB
/
deploy-to-lambda.yml
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
32
33
34
35
36
name: Deploy Lambda Function
on:
push:
branches: [master]
permissions:
id-token: write # this is required for requesting the JWT for OIDC
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::648295097384:role/github_actions_heyparkerj_role
aws-region: us-west-2
- name: Create a ZIP archive
run: zip -r sleeper-data-pipeline.zip .
- name: Upload the ZIP file to S3
run : |
aws s3 sync sleeper-data-pipeline.zip s3://sleeper-data-pipeline-backfill-bucket --delete
# - name: Update the Lambda function
# uses: aws-actions/aws-lambda@v1
# with:
# function-name: arn:aws:lambda:us-west-2:648295097384:function:sleeper-data-pipeline-backfill
# package-type: Zip
# s3-bucket: sleeper-data-pipeline-backfill-bucket
# s3-key: lambda_function.zip