Skip to content

Commit b777616

Browse files
committed
add comment
1 parent 8d8d547 commit b777616

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/cdkConstructs/src/constructs/lambdaSharedResources.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@ export const createSharedLambdaResources = (
7272
addSuppressions([cfnlogGroup], ["CW_LOGGROUP_RETENTION_PERIOD_CHECK"])
7373

7474
if (addSplunkSubscriptionFilter) {
75+
// This is in an if statement to ensure correct value is used
76+
// importing and coercing to cfnDeliveryStream causes issues
7577
if (splunkDeliveryStream) {
7678
new CfnSubscriptionFilter(scope, "LambdaLogsSplunkSubscriptionFilter", {
77-
destinationArn: splunkDeliveryStream?.attrArn,
79+
destinationArn: splunkDeliveryStream.attrArn,
7880
filterPattern: "",
7981
logGroupName: logGroup.logGroupName,
8082
roleArn: splunkSubscriptionFilterRole.roleArn

0 commit comments

Comments
 (0)