- Newest
- Most votes
- Most comments
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
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.
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 months ago
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.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