From da3ccdc34d9e25ed6d2ab599973faa019eeb78f0 Mon Sep 17 00:00:00 2001 From: Daniel Tom Date: Mon, 23 Sep 2024 12:56:34 +0200 Subject: [PATCH] Remove depr. basic auth params deploy lambda --- typescript/src/resources/deploy-lambda.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/typescript/src/resources/deploy-lambda.ts b/typescript/src/resources/deploy-lambda.ts index a93860c8..a9a1183e 100644 --- a/typescript/src/resources/deploy-lambda.ts +++ b/typescript/src/resources/deploy-lambda.ts @@ -43,9 +43,8 @@ export interface CustomDeployLambdaProps { readonly accountId: string readonly region: string readonly lambdaVersion?: string - readonly databricksUserParam?: string - readonly databricksPassParam?: string readonly databricksAccountParam?: string + readonly clientSecretParam?: string readonly lambdaCode?: aws_lambda.DockerImageCode readonly lambdaName?: string readonly lambdaId?: string @@ -337,9 +336,8 @@ export class DatabricksDeployLambda extends IDatabricksDeployLambda { memorySize: 512, environment: { LAMBDA_METHOD: "cfn-deploy", - USER_PARAM: props.databricksUserParam || "/databricks/deploy/user", - PASS_PARAM: props.databricksPassParam || "/databricks/deploy/password", - ACCOUNT_PARAM: props.databricksAccountParam || "/databricks/account-id" + ACCOUNT_PARAM: props.databricksAccountParam || "/databricks/account-id", + CLIENT_SECRET_PARAM: props.clientSecretParam || "/databricks/deploy/client-secret" }, logRetention: aws_logs.RetentionDays.THREE_MONTHS, });