@@ -157,7 +157,8 @@ describe('serverless-plugin-lambda-account-access', function() {
157
157
'Fn::GetAtt' : [ 'Function1LambdaFunction' , 'Arn' ] ,
158
158
} ,
159
159
'Principal' : '222222222222'
160
- }
160
+ } ,
161
+ 'DependsOn' : 'Function1LambdaFunctionPermitInvokeFrom111111111111'
161
162
} ,
162
163
'Function2LambdaFunctionPermitInvokeFrom111111111111' : {
163
164
'Type' : 'AWS::Lambda::Permission' ,
@@ -177,7 +178,8 @@ describe('serverless-plugin-lambda-account-access', function() {
177
178
'Fn::GetAtt' : [ 'Function2LambdaFunction' , 'Arn' ] ,
178
179
} ,
179
180
'Principal' : '222222222222'
180
- }
181
+ } ,
182
+ 'DependsOn' : 'Function2LambdaFunctionPermitInvokeFrom111111111111'
181
183
}
182
184
} ) ;
183
185
} ) ;
@@ -215,7 +217,8 @@ describe('serverless-plugin-lambda-account-access', function() {
215
217
'Fn::GetAtt' : [ 'Function2LambdaFunction' , 'Arn' ] ,
216
218
} ,
217
219
'Principal' : '222222222222'
218
- }
220
+ } ,
221
+ 'DependsOn' : 'Function2LambdaFunctionPermitInvokeFrom111111111111'
219
222
}
220
223
} ) ;
221
224
} ) ;
@@ -253,7 +256,8 @@ describe('serverless-plugin-lambda-account-access', function() {
253
256
'Fn::GetAtt' : [ 'Function2LambdaFunction' , 'Arn' ] ,
254
257
} ,
255
258
'Principal' : '222222222222'
256
- }
259
+ } ,
260
+ 'DependsOn' : 'Function2LambdaFunctionPermitInvokeFrom111111111111'
257
261
}
258
262
} ) ;
259
263
} ) ;
@@ -291,7 +295,8 @@ describe('serverless-plugin-lambda-account-access', function() {
291
295
'Fn::GetAtt' : [ 'Function1LambdaFunction' , 'Arn' ] ,
292
296
} ,
293
297
'Principal' : '444444444444'
294
- }
298
+ } ,
299
+ 'DependsOn' : 'Function1LambdaFunctionPermitInvokeFrom333333333333'
295
300
} ,
296
301
'Function2LambdaFunctionPermitInvokeFrom111111111111' : {
297
302
'Type' : 'AWS::Lambda::Permission' ,
@@ -311,7 +316,8 @@ describe('serverless-plugin-lambda-account-access', function() {
311
316
'Fn::GetAtt' : [ 'Function2LambdaFunction' , 'Arn' ] ,
312
317
} ,
313
318
'Principal' : '222222222222'
314
- }
319
+ } ,
320
+ 'DependsOn' : 'Function2LambdaFunctionPermitInvokeFrom111111111111'
315
321
}
316
322
} ) ;
317
323
} ) ;
0 commit comments