Skip to content

Commit b97453e

Browse files
committedFeb 26, 2025
feat: allow to set architecture
1 parent 175f150 commit b97453e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/PackedLambdaFn.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ export class PackedLambdaFn extends Construct {
3737
) {
3838
super(parent, id)
3939

40-
const { environment, initialPolicy, ...rest } = props
40+
const { environment, initialPolicy, architecture, ...rest } = props
4141

4242
this.logGroup =
4343
props.logGroup ?? new LambdaLogGroup(this, 'fnLogs').logGroup
4444

4545
this.fn = new Lambda.Function(this, 'fn', {
46-
architecture: Lambda.Architecture.ARM_64,
46+
architecture: architecture ?? Lambda.Architecture.ARM_64,
4747
runtime: props.runtime ?? Lambda.Runtime.NODEJS_22_X,
4848
timeout: Duration.seconds(5),
4949
memorySize: 1792,

0 commit comments

Comments
 (0)