Skip to content

Commit 7a4a09d

Browse files
author
Taniya Mathur
committed
fix: correct Step Functions CloudWatchLogsLogGroup format in all patterns
- Fix CloudWatchLogsLogGroup configuration to use proper JSON object format - Change from string ARN to LogGroupArn property in object structure - Resolves CloudFormation template validation error for DocumentProcessingStateMachine - Applied to patterns 1, 2, and 3 templates Fixes template validation error: 'expected type: JSONObject, found: String' for CloudWatchLogsLogGroup property
1 parent 0df559e commit 7a4a09d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

patterns/pattern-1/template.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,8 @@ Resources:
680680
Level: ALL
681681
IncludeExecutionData: true
682682
Destinations:
683-
- CloudWatchLogsLogGroup: !GetAtt StateMachineLogGroup.Arn
683+
- CloudWatchLogsLogGroup:
684+
LogGroupArn: !GetAtt StateMachineLogGroup.Arn
684685
Tracing:
685686
Enabled: !Ref EnableXRayTracing
686687
Policies:

patterns/pattern-2/template.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2418,7 +2418,8 @@ Resources:
24182418
Level: ALL
24192419
IncludeExecutionData: true
24202420
Destinations:
2421-
- CloudWatchLogsLogGroup: !GetAtt StateMachineLogGroup.Arn
2421+
- CloudWatchLogsLogGroup:
2422+
LogGroupArn: !GetAtt StateMachineLogGroup.Arn
24222423
Tracing:
24232424
Enabled: !Ref EnableXRayTracing
24242425
Policies:

patterns/pattern-3/template.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,8 @@ Resources:
14991499
Level: ALL
15001500
IncludeExecutionData: true
15011501
Destinations:
1502-
- CloudWatchLogsLogGroup: !GetAtt StateMachineLogGroup.Arn
1502+
- CloudWatchLogsLogGroup:
1503+
LogGroupArn: !GetAtt StateMachineLogGroup.Arn
15031504
Policies:
15041505
- LambdaInvokePolicy:
15051506
FunctionName: !Ref OCRFunction

0 commit comments

Comments
 (0)