Skip to content

Commit b3a792a

Browse files
authored
[ez][lambdas] Update readme after #6809 (#6821)
As in title, update readme after #6809 I forgot I said I would do this in that PR... but on the bright side I can now include permalinks to code on the main branch
1 parent 193a508 commit b3a792a

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

aws/lambda/README.md

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -38,43 +38,7 @@ create-deployment-package: deployment.zip
3838
```
3939

4040
### Step 2: Add Deployment Step in Runner Release Workflow
41-
Add a deployment step to `.github/workflows/_lambda-do-release-runners.yml` similar to [PR: [Queue Time Histogram] Add deployment step](https://github.com/pytorch/test-infra/pull/6505).
42-
43-
#### Example Deployment Step
44-
```yml
45-
release-${YOUR_LAMBDA_FUNCTION_NAME}:
46-
name: Upload Release for ${YOUR_LAMBDA_FUNCTION_NAME} lambda
47-
runs-on: ubuntu-latest
48-
permissions:
49-
contents: write
50-
env:
51-
REF: ${{ inputs.tag }}
52-
steps:
53-
- name: Checkout code
54-
uses: actions/checkout@v4
55-
with:
56-
ref: ${{ inputs.tag }}
57-
58-
- uses: actions/setup-python@v5
59-
with:
60-
python-version: '3.10'
61-
62-
- name: Build deployment.zip
63-
working-directory: aws/lambda/${YOUR_LAMBDA_FUNCTION_FOLDER_NAME}
64-
run: make deployment.zip
65-
66-
- name: Copy deployment.zip to root
67-
run: cp aws/lambda/${YOUR_LAMBDA_FUNCTION_FOLDER_NAME}/deployment.zip ${YOUR_LAMBDA_FUNCTION_ZIP_NAME}.zip
68-
69-
- uses: ncipollo/release-action@v1
70-
with:
71-
artifacts: "${YOUR_LAMBDA_FUNCTION_ZIP_NAME}.zip"
72-
allowUpdates: true
73-
draft: true
74-
name: ${{ inputs.tag }}
75-
tag: ${{ inputs.tag }}
76-
updateOnlyUnreleased: true
77-
```
41+
Add a deployment step to `.github/workflows/_lambda-do-release-runners.yml`. If you followed the directions above and have a simple python lambda, add your folder and zip name to [the list of python lambdas](https://github.com/pytorch/test-infra/blob/f2c6cbeba65e94e877379cfe88d723e81749ead7/.github/workflows/_lambda-do-release-runners.yml#L88). If are not working in python or need more complex logic, use the examples in that file to write a custom job, and remember to add it to [the list of jobs needed to run for the full release](https://github.com/pytorch/test-infra/blob/f2c6cbeba65e94e877379cfe88d723e81749ead7/.github/workflows/_lambda-do-release-runners.yml#L128).
7842

7943
### Step 3: Trigger a Release
8044

0 commit comments

Comments
 (0)