forked from awsdocs/aws-doc-sdk-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 745 Bytes
/
Copy pathKB_Updater.yml
File metadata and controls
31 lines (27 loc) · 745 Bytes
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
name: KB_Updater-Lambda
on:
push:
branches: ["main"]
paths:
- '.tools/lambda/KB_Updater/lambda_function.py'
workflow_dispatch:
permissions:
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v5
with:
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
aws-region: us-west-2
- name: Deploy Lambda
run: |
cd .tools/lambda/KB_Updater
zip function.zip lambda_function.py
aws lambda update-function-code \
--function-name KB_Updater \
--zip-file fileb://function.zip