|
1 | 1 | import { |
2 | 2 | aws_apigateway as apigateway, |
| 3 | + aws_logs, |
| 4 | + Duration, |
3 | 5 | aws_dynamodb as dynamodb, |
4 | 6 | aws_ec2 as ec2, |
| 7 | + aws_lambda_event_sources as events, |
5 | 8 | aws_iam as iam, |
6 | 9 | aws_lambda as lambda, |
7 | | - aws_logs, |
8 | | - aws_lambda_event_sources as events, |
| 10 | + RemovalPolicy, |
9 | 11 | aws_secretsmanager as secretsmanager, |
10 | 12 | aws_ssm as ssm, |
11 | | - Duration, |
12 | | - RemovalPolicy, |
13 | 13 | Stack, |
14 | 14 | } from "aws-cdk-lib"; |
15 | 15 | import { Construct } from "constructs"; |
@@ -118,15 +118,15 @@ export class StacIngestor extends Construct { |
118 | 118 | }): lambda.Function { |
119 | 119 | const handler = new lambda.Function(this, "api-handler", { |
120 | 120 | // defaults |
121 | | - runtime: lambda.Runtime.PYTHON_3_11, |
| 121 | + runtime: lambda.Runtime.PYTHON_3_12, |
122 | 122 | handler: "src.handler.handler", |
123 | 123 | memorySize: 2048, |
124 | 124 | logRetention: aws_logs.RetentionDays.ONE_WEEK, |
125 | 125 | timeout: Duration.seconds(30), |
126 | 126 | code: lambda.Code.fromDockerBuild(__dirname, { |
127 | 127 | file: "runtime/Dockerfile", |
128 | 128 | buildArgs: { |
129 | | - PYTHON_VERSION: "3.11", |
| 129 | + PYTHON_VERSION: "3.12", |
130 | 130 | PGSTAC_VERSION: props.pgstacVersion || DEFAULT_PGSTAC_VERSION, |
131 | 131 | }, |
132 | 132 | }), |
@@ -169,15 +169,15 @@ export class StacIngestor extends Construct { |
169 | 169 | }): lambda.Function { |
170 | 170 | const handler = new lambda.Function(this, "stac-ingestor", { |
171 | 171 | // defaults |
172 | | - runtime: lambda.Runtime.PYTHON_3_11, |
| 172 | + runtime: lambda.Runtime.PYTHON_3_12, |
173 | 173 | handler: "src.ingestor.handler", |
174 | 174 | memorySize: 2048, |
175 | 175 | logRetention: aws_logs.RetentionDays.ONE_WEEK, |
176 | 176 | timeout: Duration.seconds(180), |
177 | 177 | code: lambda.Code.fromDockerBuild(__dirname, { |
178 | 178 | file: "runtime/Dockerfile", |
179 | 179 | buildArgs: { |
180 | | - PYTHON_VERSION: "3.11", |
| 180 | + PYTHON_VERSION: "3.12", |
181 | 181 | PGSTAC_VERSION: props.pgstacVersion || DEFAULT_PGSTAC_VERSION, |
182 | 182 | }, |
183 | 183 | }), |
|
0 commit comments