diff --git a/aws/step/step.go b/aws/step/step.go index 11ecb89f9..82bfe9361 100644 --- a/aws/step/step.go +++ b/aws/step/step.go @@ -919,7 +919,7 @@ func (sm *StateMachine) StateMachineNamedDecorator(stepFunctionResourceName stri }, } var iamRoleResourceName string - if len(lambdaFunctionResourceNames) != 0 { + if len(lambdaFunctionResourceNames) != 0 && sm.roleArn == nil { statesIAMRole := &gocf.IAMRole{ AssumeRolePolicyDocument: AssumePolicyDocument, }