Skip to content

Commit

Permalink
Merge pull request #148 from vrk-kpa/REKDAT-17_fix_synth_problems
Browse files Browse the repository at this point in the history
REKDAT-17: Fix synth problems
  • Loading branch information
Zharktas authored Dec 7, 2023
2 parents 55b0687 + 266f758 commit 813f941
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cdk/lib/shield-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,9 @@ export class ShieldStack extends Stack {
`/${props.environment}/waf/sns_topic_arn`);


const topic = aws_sns.Topic.fromTopicArn(this, "AlarmTopic", SNSTopicArn.stringValue)
const topic = aws_sns.Topic.fromTopicArn(this, "SNSTopic", SNSTopicArn.stringValue)

topic.addSubscription(new aws_sns_subscriptions.LambdaSubscription(WafAutomationLambdaFunction))

const eventSource = new aws_lambda_event_sources.SnsEventSource(topic);

WafAutomationLambdaFunction.addEventSource(eventSource)
}
}

0 comments on commit 813f941

Please sign in to comment.