AWS 无法删除 RestApi

Ris*_*tra 13 rest amazon-web-services aws-rest-api

从 UI 或通过 AWS 控制台或终端使用命令删除 AWS Rest API 时:

aws apigateway delete-rest-api --rest-api-id 1234123412
Run Code Online (Sandbox Code Playgroud)

(在 aws 文档中提到)我遇到了删除域中与 RestApi 相关的基本路径映射的错误,我尝试使用 aws 文档中给出的以下 cmd 删除它:

aws apigateway delete-base-path-mapping --domain-name 'api.domain.tld' --base-path 'dev'
Run Code Online (Sandbox Code Playgroud)

我收到错误:调用 DeleteBasePathMapping 操作时发生错误 (NotFoundException)。指定的基本路径映射标识符无效

Ris*_*tra 22

从 UI 中删除相应的域名(在“自定义域名”下)。

之后,可以删除RestApi。