1 Answer
- Newest
- Most votes
- Most comments
3
It'd be done using AWS::Lambda::Url function. Please refer AWS Cloudformation Documentation.
In addition to this, you'll need to add function URL permissions to lambda function using cloudformation function AWS::Lambda::Permission
Action: 'lambda:InvokeFunctionUrl'
Principal: <based on your requirement, it can be *>
Resource: <Lambda function>
Also you can consider adding condition while adding permission for lambda:FunctionUrlAuthType: "NONE/AWS_IAM"
Hope you find this useful.
Comment here if you have additional questions, happy to help.
Abhishek
Relevant content
- asked 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 months ago