You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ez][docs] Add wiki maintenance magic strings to aws/lambda/readme (#6856)
As in title
Also
* switches some things to permalinks
* some capitalization
Most of this was written by yang, so I can't take credit even though the
wiki maintenance script will say otherwise
Copy file name to clipboardExpand all lines: aws/lambda/README.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Create a new folder under this folder with the name of the lambda function, It s
11
11
*`[Recommended]README.MD`: a README file that explains what the lambda function does and how to use it.
12
12
*`[Recommended]tests`: you can put your tests in `aws/lambda/tests` folder. The tests will be run by the CI.
13
13
14
-
refer to exmaple: [aws/lambda/oss_ci_job_queue_time](https://github.com/pytorch/test-infra/tree/main/aws/lambda/oss_ci_job_queue_time).
14
+
Refer to exmaple: [aws/lambda/oss_ci_job_queue_time](https://github.com/pytorch/test-infra/tree/99c977d429aa2eb27bc77e1783b0578e8a83e550/aws/lambda/oss_ci_job_queue_time).
15
15
16
16
#### Makefile Example
17
17
@@ -44,7 +44,7 @@ Add a deployment step to `.github/workflows/_lambda-do-release-runners.yml`. If
44
44
45
45
Oncethereleasestepisadded,submitthecode.Thengotoworkflowaction[CreateReleaseTag](https://github.com/pytorch/test-infra/actions/workflows/lambda-release-tag-runners.yml) and trigger a release by creating a new tag.
46
46
47
-
### Finding Release Artifacts
47
+
#### Finding Release Artifacts
48
48
49
49
From the steps such as "Run ncipollo/release-action@v1", you can see the release tag and the release name.
50
50
@@ -61,15 +61,20 @@ Run ncipollo/release-action@v1
61
61
Usethereleasenametofindyourreleaseartifactsinthereleasepage.[pytorch/test-infra/releases](https://github.com/pytorch/test-infra/releases). If you build successfully, you can find your zip file in the release Assets.
62
62
63
63
## Setup infra resources and deploy the function to cloud
### Setup Permission and Deployment for the lambda function
67
-
-Addyourlambdafunctionconfig(suchascreaterole,func-name,andpermissions),similarto[pr:set up Aws Resources for queue time histogram lambda ](https://github.com/pytorch-labs/pytorch-gha-infra/pull/647)
67
+
-Addyourlambdafunctionconfig(suchascreaterole,func-name,andpermissions),similarto[PR: set up Aws Resources for queue time histogram lambda ](https://github.com/pytorch-labs/pytorch-gha-infra/pull/647)
68
68
- You should only grab permission the lambda need for resource access, make sure to ask one person from pytorch dev infra team to review the permission.
- During the deploy process, the workflow will download your file based on the Terrafile.
71
-
- If you need clichouse account permission, you need ask pytorch dev infra teammate to create a clichouse role for your lambda.
72
-
- you need to add the clickhouse role secret to the repo secret, `bunnylol oss pytorch-labs/pytorch-gha-infra` and update it in settings-> secrets.
71
+
- If you need ClickHouse account permission, you need ask pytorch dev infra teammate to create a ClickHouse role for your lambda.
72
+
- Add the ClickHouse role secret to the repo secret, `bunnylol oss pytorch-labs/pytorch-gha-infra` and update it in settings-> secrets.
73
73
74
74
### Deploy the lambda
75
75
Oncetheprissubmitted,goto[RunnersDoTerraformRelease(apply)](https://github.com/pytorch-labs/pytorch-gha-infra/actions/workflows/runners-on-dispatch-release.yml), and click Run workflow.
0 commit comments