Using Console
Using CLI
update-state-machine
. Replace STATE_MACHINE_ARN
with the ARN of your Step Function and LOGGING_ARN
with the ARN of the CloudWatch Logs group where you want to store the logs.
update-function-configuration
. Replace FUNCTION_NAME
with the name of your Lambda function.describe-state-machine
and get-function-configuration
.Using Python
REGION
, ACCOUNT_ID
, and FUNCTION_NAME
with your specific values.LoggingConfiguration
field to the state machine definition, you can remediate the misconfiguration of Step Functions not having logging enabled for AWS Lambda using Python.