AWS API网关动态url配置



我是AWS的新手,有人问我一个问题"API Gateway URL is dynamic and keep changing, so how do you handle this situation and what URL you will share with Client?"。我在谷歌上搜索了可能的答案,但找不到这个问题的任何相关答案,请告诉我这是一个正确的问题,还是只是让我混淆?

URL取决于API网关实例的id:一旦您创建了API网关,它就会获得一个id,并且该id不会更改(即使您不断更新和修改它)。

无论如何,如果你的目标是将一个";漂亮的";域名与您的API网关,您正在寻找所谓的Custom domain name:https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html

最新更新