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개 답변
0

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

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

profile picture
전문가
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인