Skip to content

Commit 4fa6030

Browse files
author
Taras Buchko
authored
Update compileCloudWatchEventEvents.js
Possible fix for this issue #306 It allows to add already created role to CloudWatch event
1 parent 726616c commit 4fa6030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/deploy/events/cloudWatchEvent/compileCloudWatchEventEvents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = {
7373
.getStateMachineLogicalId(stateMachineName, stateMachineObj);
7474
const cloudWatchLogicalId = this
7575
.getCloudWatchEventLogicalId(stateMachineName, eventRuleNumberInFunction);
76-
const cloudWatchIamRoleLogicalId = this
76+
const cloudWatchIamRoleLogicalId = eventRule.iamRole || this
7777
.getCloudWatchEventToStepFunctionsIamRoleLogicalId(stateMachineName);
7878
const cloudWatchId = this.getCloudWatchEventId(stateMachineName);
7979
const policyName = this.getCloudWatchEventPolicyName(stateMachineName);

0 commit comments

Comments
 (0)