我使用无服务器框架在AWS上部署带有http端点的lambda。这很好,并返回一个API网关端点。
我想知道在什么情况下端点URL会发生更改。我需要URL是常数,知道删除和重新部署服务将改变URL。
在其他情况下,URL会改变什么呢?
发布于 2019-05-21 02:40:35
当您为服务重新创建CloudFormation时,API网关端点的URL将发生更改。
这可能发生在以下情况:
sls remove
)并重新创建它(sls deploy
)。serverless.yml
中重命名服务名。- In this case, your old API Gateway endpoint will still be there and will keep hosting the last version of the code that you deployed using the old service name and you'll have a new API Gateway endpoint that will point to your updated Lambdas.
https://stackoverflow.com/questions/56233675
复制相似问题