Skip to content

Commit bac60a8

Browse files
committed
Fix stream event conditions
1 parent e95c24c commit bac60a8

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

spire/templates/apps/dovetail-counts.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,13 @@ Resources:
9292
Stream: !Ref OldDovetailCdnLogsKinesisStreamArn
9393
Type: Kinesis
9494
CountsBytesKinesisStreamTrigger:
95-
Fn::If:
96-
- IsProduction
97-
- !Ref AWS::NoValue
98-
- Type: Kinesis
99-
Properties:
100-
BatchSize: 100
101-
BisectBatchOnFunctionError: true
102-
Enabled: true
103-
StartingPosition: LATEST
104-
Stream: !Ref DovetailCdnLogsKinesisStreamArn
95+
Properties:
96+
BatchSize: 100
97+
BisectBatchOnFunctionError: true
98+
Enabled: !If [IsProduction, false, true]
99+
StartingPosition: LATEST
100+
Stream: !Ref DovetailCdnLogsKinesisStreamArn
101+
Type: Kinesis
105102
Handler: index.handler
106103
Layers:
107104
- Fn::If:

0 commit comments

Comments
 (0)