Skip to content

Commit

Permalink
Revert changes for beta
Browse files Browse the repository at this point in the history
  • Loading branch information
codyborn committed Dec 2, 2024
1 parent 11ff88b commit 0f8d3ea
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 177 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 { analyticsStreamArn, stage, chatbotSNSArn } = props;
const { quoteLambda, hardQuoteLambda, 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: '/aws/lambda/beta-us-east-2-GoudaParameterization-QuoteE2906A56-dD269KqZUBHo',
logGroupName: quoteLambda.logGroup.logGroupName,
roleArn: subscriptionRole.roleArn,
});

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

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

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

Expand Down
Loading

0 comments on commit 0f8d3ea

Please sign in to comment.