Commit d1b0f89
committed
Overhaul of lambda template to uv and updated devops conventions
Why these changes are being introduced:
This overhaul of the lambda template has been percolating for some time,
with changes like pipenv to uv, use of AWS SAM for testing, and some
updates to how we run linting, pre-commit hooks, etc.
This work is taken on together to bring a holistic upgrade to the template
instead of piecemeal work that was entrenching some stale patterns.
How this addresses that need:
It was going to be difficult to break this work out into meaningful
smaller commits, given how interwoven the changes are. The work
breaks down into a few major areas:
1. Update from pipenv to uv
2. Introduce a Config class and simplify the lambda skeleton
3. Introduce AWS SAM for local testing
4. Update linting, pre-commit, and Makefile conventions
While theoretically possible to commit those changes in order, it
felt like an artifical divvying up of work. These changes have been
vetted in other contexts independently; this commit weaves them
together for this template repository.
Side effects of this change:
* uv nows used for python environment and dependencies
* pre-commit only fires for git push, not git commit
* security scanning is opt-in until renovate becomes a rolling
dependency manager in CI
Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/IN-15421 parent aa33724 commit d1b0f89
File tree
18 files changed
+1397
-939
lines changed- .github
- workflows
- lambdas
- tests
- sam
18 files changed
+1397
-939
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | | - | |
| 8 | + | |
6 | 9 | | |
7 | | - | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | | - | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
11 | 10 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
15 | 14 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
19 | 35 | | |
20 | 36 | | |
21 | 37 | | |
22 | 38 | | |
23 | 39 | | |
24 | 40 | | |
25 | | - | |
26 | | - | |
| 41 | + | |
| 42 | + | |
27 | 43 | | |
28 | 44 | | |
29 | | - | |
| 45 | + | |
30 | 46 | | |
31 | 47 | | |
32 | | - | |
| 48 | + | |
33 | 49 | | |
34 | 50 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
39 | 55 | | |
40 | | - | |
41 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
42 | 59 | | |
43 | | - | |
44 | | - | |
| 60 | + | |
| 61 | + | |
45 | 62 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
49 | 68 | | |
50 | | - | |
51 | | - | |
| 69 | + | |
| 70 | + | |
52 | 71 | | |
53 | | - | |
54 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
55 | 76 | | |
56 | | - | |
57 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
This file was deleted.
0 commit comments