Skip to content

Commit e880860

Browse files
committed
chore: apply hotfix to layer publisher architectures (#1400)
1 parent 9033d61 commit e880860

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
Code,
1111
Runtime,
1212
CfnLayerVersionPermission,
13-
Architecture,
1413
} from 'aws-cdk-lib/aws-lambda';
1514
import { StringParameter } from 'aws-cdk-lib/aws-ssm';
1615

@@ -39,7 +38,7 @@ export class LayerPublisherStack extends Stack {
3938
],
4039
license: 'MIT-0',
4140
// This is needed because the following regions do not support the compatibleArchitectures property #1400
42-
...([ 'eu-south-2', 'eu-central-2', 'ap-southeast-4' ].includes(Stack.of(this).region) ? { compatibleArchitectures: [Architecture.X86_64] } : {}),
41+
// ...(![ 'eu-south-2', 'eu-central-2', 'ap-southeast-4' ].includes(Stack.of(this).region) ? { compatibleArchitectures: [Architecture.X86_64] } : {}),
4342
code: Code.fromAsset('../tmp'),
4443
});
4544

0 commit comments

Comments
 (0)