Skip to content

Commit c946754

Browse files
Merge pull request #55 from ServerlessLife/python-layer-versions
fix: Python layer versions
2 parents c3dc4f8 + 46ad5d4 commit c946754

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ServerlessSpy.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,13 @@ export class ServerlessSpy extends Construct {
431431
layer =
432432
layer ||
433433
new PythonLayerVersion(this, 'PythonExtension', {
434-
compatibleRuntimes: [runtime],
434+
compatibleRuntimes: [
435+
lambda.Runtime.PYTHON_3_8,
436+
lambda.Runtime.PYTHON_3_9,
437+
lambda.Runtime.PYTHON_3_10,
438+
lambda.Runtime.PYTHON_3_11,
439+
lambda.Runtime.PYTHON_3_12,
440+
],
435441
compatibleArchitectures: [architecture],
436442
entry: location,
437443
bundling: {

0 commit comments

Comments
 (0)