Skip to content

Commit

Permalink
chore(core): remove hardcoded runtime value in favor of user provided…
Browse files Browse the repository at this point in the history
… 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*
  • Loading branch information
robertd authored Feb 25, 2021
1 parent a67d85f commit e8984e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export enum CustomResourceProviderRuntime {
/**
* Node.js 12.x
*/
NODEJS_12 = 'nodejs12'
NODEJS_12 = 'nodejs12.x'
}

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

0 comments on commit e8984e3

Please sign in to comment.