File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
lib/deploy/events/cloudWatchEvent Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ module.exports = {
9494 ${ InputPath ? `"InputPath": "${ InputPath . replace ( / \r ? \n / g, '' ) } ",` : '' }
9595 "Arn": { "Ref": "${ stateMachineLogicalId } " },
9696 "Id": "${ cloudWatchId } ",
97- ${ IamRole ? `"RoleArn":"${ IamRole } "` : `"RoleArn": {
97+ ${ IamRole ? `"RoleArn":"${ IamRole } "` : `"RoleArn": {
9898 "Fn::GetAtt": [
9999 "${ cloudWatchIamRoleLogicalId } ",
100100 "Arn"
@@ -148,17 +148,18 @@ module.exports = {
148148 [ cloudWatchLogicalId ] : JSON . parse ( cloudWatchEventRuleTemplate ) ,
149149 } ;
150150
151- const objectsToMerge = [ newCloudWatchEventRuleObject ]
151+ const objectsToMerge = [ newCloudWatchEventRuleObject ] ;
152152
153- if ( ! IamRole ) {
153+ if ( ! IamRole ) {
154154 const newPermissionObject = {
155155 [ cloudWatchIamRoleLogicalId ] : JSON . parse ( iamRoleTemplate ) ,
156156 } ;
157-
158- objectsToMerge . push ( newPermissionObject )
157+
158+ objectsToMerge . push ( newPermissionObject ) ;
159159 }
160160
161- _ . merge ( this . serverless . service . provider . compiledCloudFormationTemplate . Resources , ...objectsToMerge ) ;
161+ _ . merge ( this . serverless . service . provider . compiledCloudFormationTemplate . Resources ,
162+ ...objectsToMerge ) ;
162163 }
163164 } ) ;
164165 }
You can’t perform that action at this time.
0 commit comments