martysweet/cfn-lint

Issue when using conditionalized intrinsic function

ARMAAN7139 opened this issue · 0 comments

Resource: �[31mLambdaInvokePermission > Properties > FunctionName�[39m
2020-04-02T02:30:02.3831599Z Message: �[31mIntrinsic function Fn::Sub is not supported here�[39m
2020-04-02T02:30:02.3832234Z Documentation: �[31mhttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html�[39m
2020-04-02T02:30:02.3832858Z
2020-04-02T02:30:02.3833216Z Resource: �[31mLambdaInvokePermission > Properties > SourceAccount�[39m
2020-04-02T02:30:02.3834094Z Message: �[31mIntrinsic function Fn::Sub is not supported here�[39m
2020-04-02T02:30:02.3835013Z Documentation: �[31mhttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html�[39m
2020-04-02T02:30:02.3835423Z
2020-04-02T02:30:02.3835784Z Resource: �[31mLambdaInvokePermission > Properties > SourceArn�[39m
2020-04-02T02:30:02.3838027Z Message: �[31mIntrinsic function Fn::Sub is not supported here�[39m
2020-04-02T02:30:02.3840000Z Documentation: �[31mhttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html�[39m
2020-04-02T02:30:02.3840438Z
2020-04-02T02:30:02.3840850Z Resource: �[31mResources > LambdaInvokePermission > Properties > FunctionName�[39m
2020-04-02T02:30:02.3843529Z Message: �[31mExpecting a string, got {
2020-04-02T02:30:02.3844084Z 'Fn::Sub': 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${FunctionName}'
2020-04-02T02:30:02.3844461Z }�[39m
2020-04-02T02:30:02.3844941Z Documentation: �[31mhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html�[39m
2020-04-02T02:30:02.3845338Z
2020-04-02T02:30:02.3845666Z Resource: �[31mResources > LambdaInvokePermission > Properties > SourceAccount�[39m
2020-04-02T02:30:02.3846128Z Message: �[31mExpecting a string, got { 'Fn::Sub': '${AWS::AccountId}' }�[39m
2020-04-02T02:30:02.3847871Z Documentation: �[31mhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html�[39m
2020-04-02T02:30:02.3848479Z
2020-04-02T02:30:02.3848805Z Resource: �[31mResources > LambdaInvokePermission > Properties > SourceArn�[39m
2020-04-02T02:30:02.3849281Z Message: �[31mExpecting an ARN, got { 'Fn::Sub': 'arn:aws:s3:::${BucketName}' }�[39m
2020-04-02T02:30:02.3849984Z Documentation: �[31mhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html�[39m