Skip to content

Commit e8984e3

Browse files
authored
chore(core): remove hardcoded runtime value in favor of user provided selection (#13285)
Currently Custom Resource Provider has `nodejs12.x` hardcoded. This commit will change this in favor of user selected runtime (only nodejs12 at this time). ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent a67d85f commit e8984e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@aws-cdk/core/lib/custom-resource-provider/custom-resource-provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export enum CustomResourceProviderRuntime {
8585
/**
8686
* Node.js 12.x
8787
*/
88-
NODEJS_12 = 'nodejs12'
88+
NODEJS_12 = 'nodejs12.x'
8989
}
9090

9191
/**
@@ -210,7 +210,7 @@ export class CustomResourceProvider extends CoreConstruct {
210210
MemorySize: memory.toMebibytes(),
211211
Handler: `${ENTRYPOINT_FILENAME}.handler`,
212212
Role: role.getAtt('Arn'),
213-
Runtime: 'nodejs12.x',
213+
Runtime: props.runtime,
214214
Environment: this.renderEnvironmentVariables(props.environment),
215215
Description: props.description ?? undefined,
216216
},

0 commit comments

Comments
 (0)