File tree 1 file changed +12
-12
lines changed
lib/deploy/events/schedule
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,17 @@ module.exports = {
82
82
const scheduleId = this . getScheduleId ( stateMachineName ) ;
83
83
const policyName = this . getSchedulePolicyName ( stateMachineName ) ;
84
84
85
+ const roleArn = event . schedule . role ?
86
+ JSON . stringify ( event . schedule . role ) :
87
+ `
88
+ {
89
+ "Fn::GetAtt": [
90
+ "${ scheduleIamRoleLogicalId } ",
91
+ "Arn"
92
+ ]
93
+ }
94
+ ` ;
95
+
85
96
const scheduleTemplate = `
86
97
{
87
98
"Type": "AWS::Events::Rule",
@@ -95,18 +106,7 @@ module.exports = {
95
106
${ InputPath ? `"InputPath": "${ InputPath } ",` : '' }
96
107
"Arn": { "Ref": "${ stateMachineLogicalId } " },
97
108
"Id": "${ scheduleId } ",
98
- "RoleArn": ${
99
- event . schedule . role ?
100
- JSON . stringify ( event . schedule . role ) :
101
- `
102
- {
103
- "Fn::GetAtt": [
104
- "${ scheduleIamRoleLogicalId } ",
105
- "Arn"
106
- ]
107
- }
108
- `
109
- }
109
+ "RoleArn": ${ roleArn }
110
110
}]
111
111
}
112
112
}
You can’t perform that action at this time.
0 commit comments