Skip to content

Commit

Permalink
Merge pull request #170 from swinz/stepStateRoleOverride
Browse files Browse the repository at this point in the history
Avoid creating default state machine role when an external role is set
  • Loading branch information
mweagle committed Mar 9, 2020
2 parents c1bc12c + 2b58194 commit a4b74cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/step/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit a4b74cc

Please sign in to comment.