When a lambda step is present in the state machine and an external role is supplied via StateMachine.WithRoleArn(), the role used by the StateMachine is the default one instead of the one supplied.
This change avoids creating and using the default role in cases when the role is supplied explicitly.
When a lambda step is present in the state machine and an external role is supplied via
StateMachine.WithRoleArn()
, the role used by the StateMachine is the default one instead of the one supplied.This change avoids creating and using the default role in cases when the role is supplied explicitly.