Skip to content

Commit

Permalink
default name is generated by id, or can be provided in props
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanRademaker committed Nov 27, 2023
1 parent 35d04f9 commit cc13948
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions typescript/src/resources/deploy-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface CustomDeployLambdaProps {
readonly databricksPassParam?: string
readonly databricksAccountParam?: string
readonly lambdaCode?: aws_lambda.DockerImageCode
readonly lambdaName?: string
}

export abstract class IDatabricksDeployLambda extends Construct {
Expand Down Expand Up @@ -318,8 +319,8 @@ export class DatabricksDeployLambda extends IDatabricksDeployLambda {
]
}));

this.lambda = new aws_lambda.DockerImageFunction(this, "Lambda", {
functionName: "DatabricksDeploy",
this.lambda = new aws_lambda.DockerImageFunction(this, `${id}Lambda`, {
functionName: this.props.lambdaName,
code: dockerImageCode,
timeout: Duration.seconds(300),
role: this.lambdaRole,
Expand Down

0 comments on commit cc13948

Please sign in to comment.