Cannot delete API

0

I have an API that was created automatically with zappa. I am unable to deploy to the zappa endpoint, and I am unable to undeploy, and I'm unable to manually delete the API associated with the endpoint. When I attempt to delete it, the console tells me that it is deleted, but then it comes back.

Before trying to delete the API, I attempted to delete with zappa undeploy production. That failed, so I tried to delete the cloud formation stack. That failed because the API cannot be deleted. I cannot delete the API.

Suggestions?Enter image description here

ychatty
質問済み 3ヶ月前85ビュー
2回答
0

Hello.

Can I check CloudTrail's event history to see if any errors have occurred?
https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html

The GitHub README states the following:
Is it possible to delete it with this command?
https://github.com/zappa/Zappa

zappa undeploy production
profile picture
エキスパート
回答済み 3ヶ月前
  • Thanks for your comment. I am unable to delete with zappa undeploy production. That's why I tried the console. I can not delete the cloud formation stack. It hangs because the API cannot be deleted. I cannot delete the API.

  • I'm not sure how to use aws cloudtrail lookup events. When I try that command, it hangs.

  • I can not delete the cloud formation stack.

    Are there any errors when trying to delete CloudFormation?
    You can search from the console instead of the command. I think the API is probably recorded when API Gateway is deleted. https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html

0

Amazon provided me with a solution!

I was told to try deleting the API using the AWS CLI using the command:

aws apigateway delete-rest-api --rest-api-id ck9qrzfy5l . 

using the steps at: https://docs.aws.amazon.com/apigateway/latest/api/API_DeleteRestApi.html

I got a reasonable error message:

An error occurred (BadRequestException) when calling the DeleteRestApi operation: Deleting RestApi ck9qrzfy5l failed. Please remove all base path mappings related to the RestApi in your domains: aws-lambda.digitalcorpora.org

It would appear that the problem is that the console does not display this error message, but instead deletes the user interface record without looking at the return code from the operation. This is a bug that should be logged.

I deleted the additional base mapping, and then I could delete the REST API.

ychatty
回答済み 3ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ