Skip to content

Commit a20d43e

Browse files
committed
chore: update arch to arm
1 parent ff507b1 commit a20d43e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/cdk/src/function-with-logstream-construct.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Duration, RemovalPolicy } from 'aws-cdk-lib';
22
import type { Table } from 'aws-cdk-lib/aws-dynamodb';
3-
import { Runtime, Tracing } from 'aws-cdk-lib/aws-lambda';
3+
import { Architecture, Runtime, Tracing } from 'aws-cdk-lib/aws-lambda';
44
import {
55
NodejsFunction,
66
type NodejsFunctionProps,
@@ -41,6 +41,7 @@ export class FunctionWithLogGroup extends NodejsFunction {
4141
handler: 'handler',
4242
runtime: Runtime.NODEJS_20_X,
4343
tracing: Tracing.ACTIVE,
44+
architecture: Architecture.ARM_64,
4445
timeout: Duration.seconds(30),
4546
environment: {
4647
NODE_OPTIONS: '--enable-source-maps', // see https://docs.aws.amazon.com/lambda/latest/dg/typescript-exceptions.html

0 commit comments

Comments
 (0)