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달 전

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

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

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

관련 콘텐츠