Skip to content

Commit 31d7238

Browse files
authored
Update cwlogs_subscription_stack.ts
Update Python version
1 parent 3b549d8 commit 31d7238

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

typescript/opensearch/cwlogs_ingestion/lib/cwlogs_subscription_stack.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class CWLogsSubscriptionStack extends Stack {
3434
code: Code.fromAsset(path.join(__dirname, '../resources/lambda/log_emitter')),
3535
handler: 'handler.log_emitter',
3636
timeout: Duration.seconds(300),
37-
runtime: Runtime.PYTHON_3_9,
37+
runtime: Runtime.PYTHON_3_12,
3838
logGroup: logGroup
3939
});
4040

@@ -56,15 +56,15 @@ export class CWLogsSubscriptionStack extends Stack {
5656
const lambdaLayer = new PythonLayerVersion(this, `${this.STACK_NAMING_PREFIX}LambdaLayer`, {
5757
entry: path.join(__dirname, "../resources/lambda/cw_subscription_filter/layers"),
5858
compatibleRuntimes: [
59-
Runtime.PYTHON_3_9,
60-
Runtime.PYTHON_3_8,
59+
Runtime.PYTHON_3_12,
60+
Runtime.PYTHON_3_12,
6161
],
6262
description: "A layer that contains the required modules",
6363
license: "MIT License",
6464
});
6565

6666
const lambdaFunction = new Function(this, `${this.STACK_NAMING_PREFIX}LambdaFunction`, {
67-
runtime: Runtime.PYTHON_3_9,
67+
runtime: Runtime.PYTHON_3_12,
6868
code: Code.fromAsset(path.join(__dirname, '../resources/lambda/cw_subscription_filter')),
6969
handler: 'handler.cw_subscription_handler',
7070
layers: [lambdaLayer],
@@ -96,4 +96,4 @@ export class CWLogsSubscriptionStack extends Stack {
9696
subscriptionFilter.node.addDependency(lambdaFunction);
9797
}
9898

99-
}
99+
}

0 commit comments

Comments
 (0)