[英]How can I configure different endpoints for different stages using NLB and HTTP API type in AWS API Gateway?
[英]How can I export the AWS API Gateway Endpoints to file (or similar) after deploying?
我正在使用 AWS API 網關模擬不同的 API,我想在我的應用程序(不是 lambda)中使用這些端點。
所以我的想法是以某種方式從 json 之類的文件中引用這些端點,但為此我需要在每次部署時導出它們。
有什么辦法可以存檔嗎?
這取決於您使用哪個堆棧來部署 API 網關。
例如,
Outputs:
myapi:
Type: AWS::ApiGatewayV2::Api
Properties:
Name: MyAPI
ProtocolType: HTTP
APIEndpoint:
Description: endpoint of api
Value:
Fn::Join:
- ""
- - https://
- Ref: myapi
- .execute-api.ap-southeast-1.amazonaws.com/
Export:
Name: APIEndpoint
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.