From e2871a7c22db87d8d98fad2b64944c8d30a918d2 Mon Sep 17 00:00:00 2001 From: darwin Date: Tue, 14 Jan 2025 16:45:35 -0500 Subject: [PATCH] removing dependencies --- .../fdr-deploy/getdocs-lambda/src/index.ts | 2 +- .../fdr-deploy/scripts/fdr-deploy-stack.ts | 28 ++++++++++--------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/servers/fdr-deploy/getdocs-lambda/src/index.ts b/servers/fdr-deploy/getdocs-lambda/src/index.ts index c4defb495a..900f668e2b 100644 --- a/servers/fdr-deploy/getdocs-lambda/src/index.ts +++ b/servers/fdr-deploy/getdocs-lambda/src/index.ts @@ -9,7 +9,7 @@ import { DocumentData, GetDocsEvent } from "./types"; // copied from https://github.com/fern-api/fern-platform/blob/main/servers/fdr/src/services/auth/AuthService.ts#L96 function getVenusClient({ token }: { token?: string }): FernVenusApiClient { return new FernVenusApiClient({ - environment: process.env.venusUrl || "", + environment: process.env.VENUS_URL || "", token, }); } diff --git a/servers/fdr-deploy/scripts/fdr-deploy-stack.ts b/servers/fdr-deploy/scripts/fdr-deploy-stack.ts index 318688af07..680744b8ab 100644 --- a/servers/fdr-deploy/scripts/fdr-deploy-stack.ts +++ b/servers/fdr-deploy/scripts/fdr-deploy-stack.ts @@ -6,7 +6,6 @@ import { CfnOutput, Duration, Environment, - Fn, RemovalPolicy, Stack, StackProps, @@ -245,21 +244,24 @@ export class FdrDeployStack extends Stack { ); // Set up getdocs-lambda, which gets docsDefinition from RDS - const rdsProxyEndpoint = Fn.importValue( - `fern-${environmentType.toLowerCase()}-rds-proxy-endpoint` - ); - const rdsProxySecurityGroupID = Fn.importValue( - `fern-${environmentType.toLowerCase()}-rds-proxy-security-group-id` - ); - const rdsProxyResourceID = Fn.importValue( - `fern-${environmentType.toLowerCase()}-rds-proxy-resource-id` - ); + // const rdsProxyEndpoint = Fn.importValue( + // `fern-${environmentType.toLowerCase()}-rds-proxy-endpoint` + // ); + // const rdsProxySecurityGroupID = Fn.importValue( + // `fern-${environmentType.toLowerCase()}-rds-proxy-security-group-id` + // ); + // const rdsProxyResourceID = Fn.importValue( + // `fern-${environmentType.toLowerCase()}-rds-proxy-resource-id` + // ); const getDocsLambda = new GetDocsLambda(this, "getdocs-lambda", { vpc, environmentType, - rdsProxyEndpoint, - rdsProxySecurityGroupID, - rdsProxyResourceID, + // rdsProxyEndpoint, + // rdsProxySecurityGroupID, + // rdsProxyResourceID, + rdsProxyEndpoint: "", + rdsProxySecurityGroupID: "", + rdsProxyResourceID: "", redisEndpoint: fernDocsCacheEndpoint, redisSecurityGroupID: fdrSg.securityGroupId, cacheSecurityGroupID: redisSecurityGroupID,