Skip to content

Commit

Permalink
[TO-BE-REVERTED]: Remove all lambdas (#389)
Browse files Browse the repository at this point in the history
* Remove all lambdas

* Reduce change surface area
  • Loading branch information
codyborn authored Nov 27, 2024
1 parent fadda3e commit 37ff2f9
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 163 deletions.
14 changes: 7 additions & 7 deletions bin/stacks/analytics-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ enum RS_DATA_TYPES {
}

export interface AnalyticsStackProps extends cdk.NestedStackProps {
quoteLambda: aws_lambda_nodejs.NodejsFunction;
hardQuoteLambda: aws_lambda_nodejs.NodejsFunction;
// quoteLambda: aws_lambda_nodejs.NodejsFunction;
// hardQuoteLambda: aws_lambda_nodejs.NodejsFunction;
envVars: Record<string, string>;
analyticsStreamArn: string;
stage: string;
Expand All @@ -62,7 +62,7 @@ export class AnalyticsStack extends cdk.NestedStack {

constructor(scope: Construct, id: string, props: AnalyticsStackProps) {
super(scope, id, props);
const { quoteLambda, hardQuoteLambda, analyticsStreamArn, stage, chatbotSNSArn } = props;
const { analyticsStreamArn, stage, chatbotSNSArn } = props;

/* S3 Initialization */
const rfqRequestBucket = new aws_s3.Bucket(this, 'RfqRequestBucket');
Expand Down Expand Up @@ -1259,28 +1259,28 @@ export class AnalyticsStack extends cdk.NestedStack {
new aws_logs.CfnSubscriptionFilter(this, 'RequestSub', {
destinationArn: rfqRequestFirehoseStream.attrArn,
filterPattern: '{ $.eventType = "QuoteRequest" }',
logGroupName: quoteLambda.logGroup.logGroupName,
logGroupName: '/aws/lambda/beta-us-east-2-GoudaParameterization-QuoteE2906A56-dD269KqZUBHo',
roleArn: subscriptionRole.roleArn,
});

new aws_logs.CfnSubscriptionFilter(this, 'ResponseSub', {
destinationArn: rfqResponseFirehoseStream.attrArn,
filterPattern: '{ $.eventType = "QuoteResponse" }',
logGroupName: quoteLambda.logGroup.logGroupName,
logGroupName: '/aws/lambda/beta-us-east-2-GoudaParameterization-QuoteE2906A56-dD269KqZUBHo',
roleArn: subscriptionRole.roleArn,
});

new aws_logs.CfnSubscriptionFilter(this, 'HardRequestSub', {
destinationArn: hardRequestFirehoseStream.attrArn,
filterPattern: '{ $.eventType = "HardRequest" }',
logGroupName: hardQuoteLambda.logGroup.logGroupName,
logGroupName: '/aws/lambda/beta-us-east-2-GoudaParameteriza-HardQuote29A66D69-nfILopzkGEIk',
roleArn: subscriptionRole.roleArn,
});

new aws_logs.CfnSubscriptionFilter(this, 'HardResponseSub', {
destinationArn: hardResponseFirehoseStream.attrArn,
filterPattern: '{ $.eventType = "HardResponse" }',
logGroupName: hardQuoteLambda.logGroup.logGroupName,
logGroupName: '/aws/lambda/beta-us-east-2-GoudaParameteriza-HardQuote29A66D69-nfILopzkGEIk',
roleArn: subscriptionRole.roleArn,
});

Expand Down
Loading

0 comments on commit 37ff2f9

Please sign in to comment.