Skip to content

Commit 8d61152

Browse files
committed
fix(lambda): Use InvokedViaFunctionUrl for lambda:InvokeFunction permission
FunctionUrlAuthType property is only valid for lambda:InvokeFunctionUrl action. For lambda:InvokeFunction action, must use InvokedViaFunctionUrl: true instead. This fixes the CloudFormation deployment error: 'FunctionUrlAuthType is only supported for lambda:InvokeFunctionUrl action' Ref: https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-lambda-permission.html
1 parent c864b79 commit 8d61152

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

cloudformation/scenarios/council-chatbot/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ Resources:
406406
FunctionName: !Ref ChatbotFunction
407407
Action: lambda:InvokeFunction
408408
Principal: '*'
409-
FunctionUrlAuthType: NONE
409+
InvokedViaFunctionUrl: true
410410

411411
# CloudWatch Log Group
412412
ChatbotLogGroup:

cloudformation/scenarios/foi-redaction/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ Resources:
784784
FunctionName: !Ref RedactionFunction
785785
Action: lambda:InvokeFunction
786786
Principal: '*'
787-
FunctionUrlAuthType: NONE
787+
InvokedViaFunctionUrl: true
788788

789789
# CloudWatch Log Group
790790
RedactionLogGroup:

cloudformation/scenarios/planning-ai/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ Resources:
12391239
FunctionName: !Ref PlanningAnalyzerFunction
12401240
Action: lambda:InvokeFunction
12411241
Principal: '*'
1242-
FunctionUrlAuthType: NONE
1242+
InvokedViaFunctionUrl: true
12431243

12441244
# CloudWatch Log Group
12451245
PlanningAnalyzerLogGroup:

cloudformation/scenarios/smart-car-park/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ Resources:
662662
FunctionName: !Ref ParkingSimulatorFunction
663663
Action: lambda:InvokeFunction
664664
Principal: '*'
665-
FunctionUrlAuthType: NONE
665+
InvokedViaFunctionUrl: true
666666

667667
# CloudWatch Log Group
668668
ParkingSimulatorLogGroup:

cloudformation/scenarios/text-to-speech/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ Resources:
604604
FunctionName: !Ref TextToSpeechFunction
605605
Action: lambda:InvokeFunction
606606
Principal: '*'
607-
FunctionUrlAuthType: NONE
607+
InvokedViaFunctionUrl: true
608608

609609
# CloudWatch Log Group
610610
TextToSpeechLogGroup:

0 commit comments

Comments
 (0)