File tree 1 file changed +7
-6
lines changed
lib/deploy/events/cloudWatchEvent
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ module.exports = {
94
94
${ InputPath ? `"InputPath": "${ InputPath . replace ( / \r ? \n / g, '' ) } ",` : '' }
95
95
"Arn": { "Ref": "${ stateMachineLogicalId } " },
96
96
"Id": "${ cloudWatchId } ",
97
- ${ IamRole ? `"RoleArn":"${ IamRole } "` : `"RoleArn": {
97
+ ${ IamRole ? `"RoleArn":"${ IamRole } "` : `"RoleArn": {
98
98
"Fn::GetAtt": [
99
99
"${ cloudWatchIamRoleLogicalId } ",
100
100
"Arn"
@@ -148,17 +148,18 @@ module.exports = {
148
148
[ cloudWatchLogicalId ] : JSON . parse ( cloudWatchEventRuleTemplate ) ,
149
149
} ;
150
150
151
- const objectsToMerge = [ newCloudWatchEventRuleObject ]
151
+ const objectsToMerge = [ newCloudWatchEventRuleObject ] ;
152
152
153
- if ( ! IamRole ) {
153
+ if ( ! IamRole ) {
154
154
const newPermissionObject = {
155
155
[ cloudWatchIamRoleLogicalId ] : JSON . parse ( iamRoleTemplate ) ,
156
156
} ;
157
-
158
- objectsToMerge . push ( newPermissionObject )
157
+
158
+ objectsToMerge . push ( newPermissionObject ) ;
159
159
}
160
160
161
- _ . merge ( this . serverless . service . provider . compiledCloudFormationTemplate . Resources , ...objectsToMerge ) ;
161
+ _ . merge ( this . serverless . service . provider . compiledCloudFormationTemplate . Resources ,
162
+ ...objectsToMerge ) ;
162
163
}
163
164
} ) ;
164
165
}
You can’t perform that action at this time.
0 commit comments