Open nimaft opened 4 weeks ago
Voting for Prioritization
Volunteering to Work on This Issue
h2. AWS Logging Documentation for Step Functions
When you create a Standard Workflow using the Step Functions console, it will not be configured to enable logging to CloudWatch Logs. An Express Workflow created using the Step Functions console will by default be configured to enable logging to CloudWatch Logs.
For Express workflows, Step Functions can create a role with the necessary AWS Identity and Access Management (IAM) policy for CloudWatch Logs. If you create a Standard Workflow, or an Express Workflow using the API, CLI, or AWS CloudFormation, Step Functions will not enable logging by default, and you will need ensure your role has the necessary permissions.
https://docs.aws.amazon.com/step-functions/latest/dg/cw-logs.html
Documentation Link
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sfn_state_machine#logging_configuration-configuration-block
Description
In documentation,
logging_configuration
ofaws_sfn_state_machine
states that logging is only supported byEXPRESS
workflows:This is not true (at least not anymore), standard workflows support logging as well. There are no limitations specified in LoggingConfiguration section of CreateStateMachine. I have also deployed a state machine using below template, and logging was properly configured for a standard workflow:
References
No response
Would you like to implement a fix?
None