Skip to content

Commit

Permalink
chore: remove forced lambda runtime check
Browse files Browse the repository at this point in the history
  • Loading branch information
Doesnt Matter committed Jul 2, 2024
1 parent ddf1ab3 commit 036c21d
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -554,14 +554,6 @@ export abstract class ContainersStack extends cdk.Stack {
}
});

// Until we update CDK lib to >= 2.87, custom resources use older nodejs version in lambda,
// explicitly overriding the generated resources.
Object.values(cfn.Resources).forEach((resource: any) => {
if (resource.Type === 'AWS::Lambda::Function' && resource.Properties.Runtime && resource.Properties.Runtime === 'nodejs14.x') {
resource.Properties.Runtime = 'nodejs16.x';
}
});

return cfn;
}
}
Expand Down

0 comments on commit 036c21d

Please sign in to comment.