Skip to content

Commit 4dd17cc

Browse files
authored
chore(layers): add compatible architecture field (#3544)
1 parent 4dd41cc commit 4dd17cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: layers/src/layer-publisher-stack.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { randomUUID } from 'node:crypto';
33
import { join, resolve, sep } from 'node:path';
44
import { CfnOutput, RemovalPolicy, Stack, type StackProps } from 'aws-cdk-lib';
55
import {
6+
Architecture,
67
CfnLayerVersionPermission,
78
Code,
89
LayerVersion,
@@ -42,8 +43,7 @@ export class LayerPublisherStack extends Stack {
4243
Runtime.NODEJS_22_X,
4344
],
4445
license: 'MIT-0',
45-
// This is needed because the following regions do not support the compatibleArchitectures property #1400
46-
// ...(![ 'eu-south-2', 'eu-central-2', 'ap-southeast-4' ].includes(Stack.of(this).region) ? { compatibleArchitectures: [Architecture.X86_64] } : {}),
46+
compatibleArchitectures: [Architecture.ARM_64, Architecture.X86_64],
4747
code: Code.fromAsset(resolve(__dirname), {
4848
bundling: {
4949
// This is here only because is required by CDK, however it is not used since the bundling is done locally

0 commit comments

Comments
 (0)