Skip to content

Commit

Permalink
removing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dubwub committed Jan 14, 2025
1 parent 218afb8 commit e2871a7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion servers/fdr-deploy/getdocs-lambda/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
Expand Down
28 changes: 15 additions & 13 deletions servers/fdr-deploy/scripts/fdr-deploy-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
CfnOutput,
Duration,
Environment,
Fn,
RemovalPolicy,
Stack,
StackProps,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e2871a7

Please sign in to comment.