@@ -157,7 +157,8 @@ describe('serverless-plugin-lambda-account-access', function() {
157157 'Fn::GetAtt' : [ 'Function1LambdaFunction' , 'Arn' ] ,
158158 } ,
159159 'Principal' : '222222222222'
160- }
160+ } ,
161+ 'DependsOn' : 'Function1LambdaFunctionPermitInvokeFrom111111111111'
161162 } ,
162163 'Function2LambdaFunctionPermitInvokeFrom111111111111' : {
163164 'Type' : 'AWS::Lambda::Permission' ,
@@ -177,7 +178,8 @@ describe('serverless-plugin-lambda-account-access', function() {
177178 'Fn::GetAtt' : [ 'Function2LambdaFunction' , 'Arn' ] ,
178179 } ,
179180 'Principal' : '222222222222'
180- }
181+ } ,
182+ 'DependsOn' : 'Function2LambdaFunctionPermitInvokeFrom111111111111'
181183 }
182184 } ) ;
183185 } ) ;
@@ -215,7 +217,8 @@ describe('serverless-plugin-lambda-account-access', function() {
215217 'Fn::GetAtt' : [ 'Function2LambdaFunction' , 'Arn' ] ,
216218 } ,
217219 'Principal' : '222222222222'
218- }
220+ } ,
221+ 'DependsOn' : 'Function2LambdaFunctionPermitInvokeFrom111111111111'
219222 }
220223 } ) ;
221224 } ) ;
@@ -253,7 +256,8 @@ describe('serverless-plugin-lambda-account-access', function() {
253256 'Fn::GetAtt' : [ 'Function2LambdaFunction' , 'Arn' ] ,
254257 } ,
255258 'Principal' : '222222222222'
256- }
259+ } ,
260+ 'DependsOn' : 'Function2LambdaFunctionPermitInvokeFrom111111111111'
257261 }
258262 } ) ;
259263 } ) ;
@@ -291,7 +295,8 @@ describe('serverless-plugin-lambda-account-access', function() {
291295 'Fn::GetAtt' : [ 'Function1LambdaFunction' , 'Arn' ] ,
292296 } ,
293297 'Principal' : '444444444444'
294- }
298+ } ,
299+ 'DependsOn' : 'Function1LambdaFunctionPermitInvokeFrom333333333333'
295300 } ,
296301 'Function2LambdaFunctionPermitInvokeFrom111111111111' : {
297302 'Type' : 'AWS::Lambda::Permission' ,
@@ -311,7 +316,8 @@ describe('serverless-plugin-lambda-account-access', function() {
311316 'Fn::GetAtt' : [ 'Function2LambdaFunction' , 'Arn' ] ,
312317 } ,
313318 'Principal' : '222222222222'
314- }
319+ } ,
320+ 'DependsOn' : 'Function2LambdaFunctionPermitInvokeFrom111111111111'
315321 }
316322 } ) ;
317323 } ) ;
0 commit comments