AWS Lambda函数REST API端点

编程入门 行业动态 更新时间:2024-10-10 03:31:12
本文介绍了AWS Lambda函数REST API端点-403错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个作为REST API公开的AWS Lambda函数.

I have an AWS Lambda function that is exposed as a REST API.

通过aws lambda控制台上的测试"按钮调用它时,它将起作用.

When it is invoked it via the Test button on aws lambda console, it works.

通过在线REST客户端调用它时,出现403错误.它是根据要求创建的-无需身份验证(打开).

When it is invoked via a online REST client, i get 403 error. It was created as requiring - no authentication (Open).

我缺少什么配置?

推荐答案

假定Lambda是通过AWS API网关公开的. 之所以会在新的不进行身份验证" API网关资源上获得403,是因为您尚未部署更改.

Supposedly the Lambda is exposed through an AWS API Gateway. One reason why you'd get 403 on a fresh "no authentication" API Gateway resource is because you haven't yet deployed your changes.

在API Gateway Console中,单击Actions下拉列表,然后选择Deploy API.

In API Gateway Console click the Actions dropdown and select Deploy API.

你应该很好.

更多推荐

AWS Lambda函数REST API端点

本文发布于:2023-11-28 06:05:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641224.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:函数   Lambda   AWS   REST   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!