From 11ff88b6ff33cb84660a973dc3b725797243a290 Mon Sep 17 00:00:00 2001 From: Cody Born Date: Wed, 27 Nov 2024 08:39:18 -0500 Subject: [PATCH] [TO-BE-REVERTED]: Remove analytics stack (#390) * Remove all lambdas * Reduce change surface area * Remove analytics stack * revert cdk.context change --- bin/stacks/api-stack.ts | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/bin/stacks/api-stack.ts b/bin/stacks/api-stack.ts index bb23de9..c5a5b2f 100644 --- a/bin/stacks/api-stack.ts +++ b/bin/stacks/api-stack.ts @@ -25,7 +25,7 @@ import { import { STAGE } from '../../lib/util/stage'; import { PROD_TABLE_CAPACITY } from '../config'; import { SERVICE_NAME } from '../constants'; -import { AnalyticsStack } from './analytics-stack'; +// import { AnalyticsStack } from './analytics-stack'; import { CronDashboardStack } from './cron-dashboard-stack'; import { CronStack } from './cron-stack'; import { FirehoseStack } from './firehose-stack'; @@ -171,7 +171,8 @@ export class APIStack extends cdk.Stack { * Firehose Initialization */ - const firehoseStack = new FirehoseStack(this, 'FirehoseStack'); + //const firehoseStack = + new FirehoseStack(this, 'FirehoseStack'); /* * Lambda Initialization @@ -401,19 +402,19 @@ export class APIStack extends cdk.Stack { /* * Analytics Stack Initialization */ - const analyticsStack = new AnalyticsStack(this, 'AnalyticsStack', { - // quoteLambda, - // hardQuoteLambda, - envVars: props.envVars, - analyticsStreamArn: firehoseStack.analyticsStreamArn, - stage, - chatbotSNSArn, - }); + // const analyticsStack = new AnalyticsStack(this, 'AnalyticsStack', { + // // quoteLambda, + // // hardQuoteLambda, + // envVars: props.envVars, + // analyticsStreamArn: firehoseStack.analyticsStreamArn, + // stage, + // chatbotSNSArn, + // }); const cronStack = new CronStack(this, 'CronStack', { - RsDatabase: analyticsStack.dbName, - RsClusterIdentifier: analyticsStack.clusterId, - RedshiftCredSecretArn: analyticsStack.credSecretArn, + RsDatabase: 'uniswap_x', + RsClusterIdentifier: 'parametrizationcluster2acf90d1-nv1fmfiwbsgj', + RedshiftCredSecretArn: 'arn:aws:secretsmanager:us-east-2:801328487475:secret:RsCredsD1DA9D21-wfkkcOIPjYTj-H9Py06', lambdaRole: lambdaRole, chatbotSNSArn: chatbotSNSArn, stage: stage,