AWS Lambda API 端点域未解析

AWS Lambda API endpoints domain not resolving

最近向 Lambda 添加 API 端点是个好消息,但生成的端点无法解析,因此无法触发。

当我调用端点时,我得到以下信息。

DNS_PROBE_FINISHED_NXDOMAIN

还有其他人遇到这种情况并有解决方案吗?

联系亚马逊支持后发现端点的生成存在错误,以下是支持的引用。

The issue you are seeing has been raised internally and the Lambda team has been notified of the issue. There is a bug in the way that the URL is generated on the Lambda API endpoint page. The region and 'execute-api' parts of the URL have to be switched around and .amazonaws has to be added. So instead of

https://i9ng3vkc9b.eu-west-1.execute-api.com/prod/putme

try

https://i9ng3vkc9b.execute-api.eu-west-1.amazonaws.com/prod/putme

The correct URL is shown when you create a new endpoint, and when you look at the API from the API Gateway Console page. I apologize for the confusion that the bug has caused, it will be fixed shortly.