AWS cannot delete RestApi

Question:

On deleting AWS Rest API from UI or through AWS console or terminal with command:

(mentioned in aws docs)
I faced the error saying to delete base-path mappings related to RestApi in your domain,
I tried deleting it with the following cmd given in aws docs:

I got error: An error occurred (NotFoundException) when calling DeleteBasePathMapping operation. Invalid base path mapping identifier specified

Answer:

Delete the corresponding domain name from the UI (under ‘Custom domain names’).

After which, the RestApi can be deleted.

Leave a Reply