Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guides/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ deleteFoo:
The `runtime` property (set at `provider.runtime` or per function) accepts a fixed set of identifiers that map to the [AWS Lambda runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). The supported identifiers, grouped by language, are:

- **Node.js:** `nodejs20.x`, `nodejs22.x`, `nodejs24.x`
- **Python:** `python3.10`, `python3.11`, `python3.12`, `python3.13`, `python3.14`
- **Python:** `python3.10`, `python3.11`, `python3.12`, `python3.13`, `python3.14`, `python3.15`
- **Java:** `java8.al2`, `java8.al2023`, `java11`, `java11.al2023`, `java17`, `java17.al2023`, `java21`, `java25`
- **Ruby:** `ruby3.3`, `ruby3.4`, `ruby4.0`
- **.NET:** `dotnet8`, `dotnet9`, `dotnet10`
Expand Down
6 changes: 5 additions & 1 deletion lib/plugins/aws/invoke-local/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,11 @@ class AwsInvokeLocal {
);
}

if (['python3.10', 'python3.11', 'python3.12', 'python3.13', 'python3.14'].includes(runtime)) {
if (
['python3.10', 'python3.11', 'python3.12', 'python3.13', 'python3.14', 'python3.15'].includes(
runtime
)
) {
const handlerComponents = handler.split(/\./);
const handlerPath = handlerComponents.slice(0, -1).join('.');
const handlerName = handlerComponents.pop();
Expand Down
1 change: 1 addition & 0 deletions lib/plugins/aws/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ class AwsProvider {
'python3.12',
'python3.13',
'python3.14',
'python3.15',
'ruby3.3',
'ruby3.4',
'ruby4.0',
Expand Down
11 changes: 11 additions & 0 deletions test/unit/lib/plugins/aws/invoke-local/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,17 @@ describe('AwsInvokeLocal', () => {
).to.be.equal(true);
});

it('should call invokeLocalPython when python3.15 runtime is set', async () => {
awsInvokeLocal.options.functionObj.runtime = 'python3.15';
await awsInvokeLocal.invokeLocal();
// NOTE: this is important so that tests on Windows won't fail
const runtime = process.platform === 'win32' ? 'python.exe' : 'python3.15';
expect(invokeLocalPythonStub.calledOnce).to.be.equal(true);
expect(
invokeLocalPythonStub.calledWithExactly(runtime, 'handler', 'hello', {}, undefined)
).to.be.equal(true);
});

[
'java8.al2',
'java8.al2023',
Expand Down
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export type AwsLambdaRuntime =
| 'python3.12'
| 'python3.13'
| 'python3.14'
| 'python3.15'
| 'ruby3.3'
| 'ruby3.4'
| 'ruby4.0';
Expand Down
Loading