cloudformation和API Gateway V2在雅加达和海得拉巴地区出现错误。

0

【以下的问题经过翻译处理】 我正在使用Cloudformation设置基于延迟的多区域API堆栈,目前在多个区域中运作良好。但在雅加达和海德拉巴通过Cloudformation控制台进行设置时,出现了以下错误。

模板格式错误:无法识别资源类型:[AWS::ApiGatewayV2::Stage, AWS::ApiGatewayV2::Authorizer, AWS::ApiGatewayV2::Route,AWS::ApiGatewayV2::ApiMapping,AWS::ApiGatewayV2::DomainName,AWS::ApiGatewayV2::Integration,AWS::ApiGatewayV2::Api]

这是否意味着这两个区域中不支持API Gateway V2,或者不支持通过Cloudformation访问?如果是这样,AWS是否列出支持V2的区域?

FYI:到目前为止,在其他9个区域中,我使用了相同的cloudformation模板而没有遇到任何问题。

编辑:我刚刚在大阪地区收到了以下错误。

资源处理程序返回消息:“HTTP APIs are not available in this AWS region (Service: AmazonApiGatewayV2; Status Code: 400; Error Code: BadRequestException; Request ID: 405a49e8----adb57d268591; Proxy: null)" (RequestToken: --fd7b--7f4e76f0dd79, HandlerErrorCode: GeneralServiceException)

看起来对于缺少功能的错误处理是不一致的?

1 Antwort
0

【以下的回答经过翻译处理】 您可以使用Parameter Store公共参数来查询服务是否可用。像这样:

aws ssm get-parameters-by-path \
  --path /aws/service/global-infrastructure/services/apigatewayv2/regions \
  --query Parameters[*].Value

profile picture
EXPERTE
beantwortet vor 5 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen