Skip to content

Commit 48f81fa

Browse files
Merge pull request #336 from alexsavio/docs/logging_standard_workflows
Add section about loggingConfig for standard workflows
2 parents 205d869 + 57441e2 commit 48f81fa

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ stepFUnctions:
364364

365365
At re:invent 2019, AWS [introduced Express Workflows](https://aws.amazon.com/about-aws/whats-new/2019/12/introducing-aws-step-functions-express-workflows/) as a cheaper, more scalable alternative (but with a cut-down set of features). See [this page](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-standard-vs-express.html) for differences between standard and express workflows.
366366

367-
To declare an express workflow, specify `type` as `EXPRESS` and you can specify the logging configuration (only applicable for express workflows).
367+
To declare an express workflow, specify `type` as `EXPRESS` and you can specify the logging configuration:
368368

369369
```yaml
370370
stepFunctions:
@@ -378,6 +378,22 @@ stepFunctions:
378378
- Fn::GetAtt: [MyLogGroup, Arn]
379379
```
380380

381+
### CloudWatch Logs
382+
383+
You can enable CloudWatch Logs for standard Step Functions, the syntax is
384+
exactly like with Express Workflows.
385+
386+
```yaml
387+
stepFunctions:
388+
stateMachines:
389+
hellostepfunc1:
390+
loggingConfig:
391+
level: ERROR
392+
includeExecutionData: true
393+
destinations:
394+
- Fn::GetAtt: [MyLogGroup, Arn]
395+
```
396+
381397
## Current Gotcha
382398

383399
Please keep this gotcha in mind if you want to reference the `name` from the `resources` section. To generate Logical ID for CloudFormation, the plugin transforms the specified name in serverless.yml based on the following scheme.

0 commit comments

Comments
 (0)