简体   繁体   中英

AWS cannot delete RestApi

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

aws apigateway delete-rest-api --rest-api-id 1234123412

(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:

aws apigateway delete-base-path-mapping --domain-name 'api.domain.tld' --base-path 'dev'

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

Got a sol. from senior mate, deleting the domain, which the error is pointing to, from the UI (under 'Custom domain names') helps in not getting any such errors further. On deleting custom domain, RestApi could be deleted easily.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM