mweagle / Sparta

go microservices, powered by AWS Lambda
https://gosparta.io
MIT License
717 stars 48 forks source link

Avoid creating default state machine role when an external role is set #170

Closed swinz closed 4 years ago

swinz commented 4 years ago

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.

mweagle commented 4 years ago

lgtm - thanks @swinz