diff --git a/test/__snapshots__/pipe.test.ts.snap b/test/__snapshots__/pipe.test.ts.snap index aadb2ab..ba31500 100644 --- a/test/__snapshots__/pipe.test.ts.snap +++ b/test/__snapshots__/pipe.test.ts.snap @@ -129,6 +129,32 @@ Object { "Properties": Object { "PolicyDocument": Object { "Statement": Array [ + Object { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": Array [ + Object { + "Fn::GetAtt": Array [ + "testlambdaC73320F8", + "Arn", + ], + }, + Object { + "Fn::Join": Array [ + "", + Array [ + Object { + "Fn::GetAtt": Array [ + "testlambdaC73320F8", + "Arn", + ], + }, + ":*", + ], + ], + }, + ], + }, Object { "Action": Array [ "sqs:ReceiveMessage", diff --git a/test/pipe.test.ts b/test/pipe.test.ts index 1d3268d..9889205 100644 --- a/test/pipe.test.ts +++ b/test/pipe.test.ts @@ -63,7 +63,7 @@ describe('Pipe', () => { template.findResources('AWS::IAM::Policy', {}), )[0]; - expect(pipeRolePolicy.Properties.PolicyDocument.Statement).toHaveLength(2); + expect(pipeRolePolicy.Properties.PolicyDocument.Statement).toHaveLength(3); expect(template).toMatchSnapshot(); });