Commit 861ea1f
chore(ci): update layer version for all AWS partitions in docs (#7757)
fix(ci): update layer version for all AWS partitions in docs
Fixes #7650
This extends the fix from #6868 to handle all AWS partitions, not just
commercial AWS. The previous fix only updated layer ARNs with specific
python versions (e.g., python312) but missed the template placeholders
with {python_version} for China and GovCloud partitions.
Changes:
- Updated hardcoded layer versions from :18 to :27 in docs/index.md
- Extended update_layer_arn_v3.sh to handle AWS China (arn:aws-cn)
and GovCloud (arn:aws-us-gov) layer ARNs
- Added sed patterns for both specific versions and {python_version}
placeholders across all AWS partitions
The automation now correctly updates layer versions for:
- Commercial AWS: arn:aws:lambda:{region}:017000801446:layer:...
- AWS China: arn:aws-cn:lambda:cn-north-1:498634801083:layer:...
- GovCloud East: arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:...
- GovCloud West: arn:aws-us-gov:lambda:us-gov-west-1:165093116878:layer:...
Co-authored-by: Leandro Damascena <lcdama@amazon.pt>1 parent f309012 commit 861ea1f
2 files changed
+20
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
| 224 | + | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
| 237 | + | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
245 | | - | |
| 244 | + | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
32 | 43 | | |
33 | 44 | | |
34 | | - | |
| 45 | + | |
35 | 46 | | |
36 | 47 | | |
37 | 48 | | |
| |||
0 commit comments