diff --git a/aws-lambda/pyproject.toml b/aws-lambda/pyproject.toml index 09bd34ff..b39e8fd0 100644 --- a/aws-lambda/pyproject.toml +++ b/aws-lambda/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "databricks-cdk" -version = "0.11.18" +version = "0.11.21" description = "Deploying databricks resources from cdk" authors = ["Peter van 't Hof' "] diff --git a/typescript/package-lock.json b/typescript/package-lock.json index 7433e40f..46fa38b4 100644 --- a/typescript/package-lock.json +++ b/typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "databricks-cdk", - "version": "0.11.18", + "version": "0.11.21", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "databricks-cdk", - "version": "0.11.18", + "version": "0.11.21", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/typescript/package.json b/typescript/package.json index c15b4428..56a36b8c 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -1,6 +1,6 @@ { "name": "databricks-cdk", - "version": "0.11.18", + "version": "0.11.21", "license": "MIT", "description": "With this package databricks resources can be deployed with cdk", "type": "commonjs", diff --git a/typescript/src/resources/deploy-lambda.ts b/typescript/src/resources/deploy-lambda.ts index 5f74d2bd..735cdfc6 100644 --- a/typescript/src/resources/deploy-lambda.ts +++ b/typescript/src/resources/deploy-lambda.ts @@ -47,6 +47,7 @@ export interface CustomDeployLambdaProps { readonly databricksPassParam?: string readonly databricksAccountParam?: string readonly lambdaCode?: aws_lambda.DockerImageCode + readonly lambdaName?: string } export abstract class IDatabricksDeployLambda extends Construct { @@ -326,8 +327,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, diff --git a/typescript/src/resources/unity-catalog/unityCatalogVolume.ts b/typescript/src/resources/unity-catalog/unityCatalogVolume.ts index c8c98d07..c1b0cf3b 100644 --- a/typescript/src/resources/unity-catalog/unityCatalogVolume.ts +++ b/typescript/src/resources/unity-catalog/unityCatalogVolume.ts @@ -33,7 +33,7 @@ export class UnityCatalogVolume extends CustomResource { properties: { action: "volume", workspace_url: props.workspace_url, - catalog: props.volume, + volume: props.volume, } }); } diff --git a/typescript/tests/resources/unity-catalog/unityCatalogVolume.test.ts b/typescript/tests/resources/unity-catalog/unityCatalogVolume.test.ts index 7f4c39b6..278f69fe 100644 --- a/typescript/tests/resources/unity-catalog/unityCatalogVolume.test.ts +++ b/typescript/tests/resources/unity-catalog/unityCatalogVolume.test.ts @@ -32,7 +32,7 @@ describe("UnityCatalogVolume", () => { "workspace_url": { "Fn::ImportValue": "databricks-workspace-url" }, - "catalog": { + "volume": { "name": "some-name", "catalog_name": "some-catalog-name", "schema_name": "some-schema-name",