Skip to content

Commit 747a279

Browse files
Alexander Schuerendreamorosi
Alexander Schueren
andauthored
chore(layer): add license and architecture fields (#1372)
* chore(layer): add license and architecture fields * Update layers/src/layer-publisher-stack.ts * chore(layer): add license info and architecture fields --------- Co-authored-by: Andrea Amorosi <[email protected]>
1 parent 72e7fe2 commit 747a279

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import {
99
LayerVersion,
1010
Code,
1111
Runtime,
12-
CfnLayerVersionPermission
12+
CfnLayerVersionPermission,
13+
Architecture,
1314
} from 'aws-cdk-lib/aws-lambda';
1415
import { StringParameter } from 'aws-cdk-lib/aws-ssm';
1516

@@ -36,6 +37,8 @@ export class LayerPublisherStack extends Stack {
3637
Runtime.NODEJS_16_X,
3738
Runtime.NODEJS_18_X
3839
],
40+
license: 'MIT-0',
41+
compatibleArchitectures: [Architecture.X86_64],
3942
code: Code.fromAsset('../tmp'),
4043
});
4144

Diff for: layers/tests/unit/layer-publisher.test.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
import { App } from 'aws-cdk-lib';
88
import { Template } from 'aws-cdk-lib/assertions';
9-
import {
10-
LayerPublisherStack
11-
} from '../../src/layer-publisher-stack';
9+
import { LayerPublisherStack } from '../../src/layer-publisher-stack';
1210

1311
describe('Class: LayerPublisherStack', () => {
1412

@@ -33,6 +31,10 @@ describe('Class: LayerPublisherStack', () => {
3331
'nodejs16.x',
3432
'nodejs18.x'
3533
],
34+
LicenseInfo: 'MIT-0',
35+
CompatibleArchitectures: [
36+
'x86_64',
37+
],
3638
Description: 'AWS Lambda Powertools for TypeScript version 1.0.1',
3739
LayerName: 'AWSLambdaPowertoolsTypeScript',
3840
});

0 commit comments

Comments
 (0)