From a02f9390bb9f741168802e3fd83dd61e144eefb1 Mon Sep 17 00:00:00 2001 From: Pedro Zurbach Date: Sun, 30 Nov 2025 15:43:20 +0100 Subject: [PATCH] Fix Lambda permissions in protomaps-template.yaml (#611) --- serverless/aws/protomaps-template.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/serverless/aws/protomaps-template.yaml b/serverless/aws/protomaps-template.yaml index aa11db3..5324b3f 100644 --- a/serverless/aws/protomaps-template.yaml +++ b/serverless/aws/protomaps-template.yaml @@ -77,16 +77,21 @@ Resources: TargetFunctionArn: !GetAtt LambdaFunction.Arn InvokeMode: BUFFERED - LambdaFunctionUrlPermission: - Type: 'AWS::Lambda::Permission' + LambdaFunctionUrlPermissionInvokeUrl: + Type: AWS::Lambda::Permission Properties: - Action: - - lambda:InvokeFunctionUrl - - lambda:InvokeFunction + Action: lambda:InvokeFunctionUrl FunctionName: !Ref LambdaFunction Principal: '*' FunctionUrlAuthType: NONE + LambdaFunctionUrlPermissionInvokeFunction: + Type: AWS::Lambda::Permission + Properties: + Action: lambda:InvokeFunction + FunctionName: !Ref LambdaFunction + Principal: '*' + ViewerRequestCloudFrontFunction: Type: AWS::CloudFront::Function Properties: