Skip to content

Commit

Permalink
fix: make sure all layers have unique names
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Feb 23, 2024
1 parent d4fbe5c commit 40ae922
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cdk/stacks/BackendStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class BackendStack extends Stack {
super(parent, STACK_NAME)

const baseLayer = new Lambda.LayerVersion(this, 'baseLayer', {
layerVersionName: `${Stack.of(this).stackName}-baseLayer`,
code: Lambda.Code.fromAsset(layer.layerZipFile),
compatibleArchitectures: [Lambda.Architecture.ARM_64],
compatibleRuntimes: [Lambda.Runtime.NODEJS_20_X],
Expand Down

0 comments on commit 40ae922

Please sign in to comment.