I never imagined I’d be writing a post like this, but here I am. I accidentally deleted a crucial API gateway while trying to remove a /path. I aimed at the whole API by mistake, and unfortunately, there is no backup. Rebuilding it from nothing would demand time that I didn’t plan for. I’ve searched online for solutions, but all I found was to contact support. Does anyone know if it’s possible to restore a deleted API gateway after confirming the deletion? Any help would be sincerely appreciated.
I’ve been in a similar situation before, and it can be quite frustrating. One thing that might help is recreating the API gateway using your existing resources if you have documentation or some kind of blueprint. If you can, try to automate the process using CloudFormation or Terraform to speed things up and to avoid similar issues in the future.
Also, contacting AWS support should definitely be on your list. They might not always be able to help, but it’s worth an attempt. For future reference, consider setting up automated backups or routinely exporting your API configurations.
oh man, that’s rough. maybe give AWS support a call asap. they might help out. also, did you by any chance export your API before? could be a lifesaver if you did. gd luck!
Sorry to hear about your situation. While you can’t directly recover a deleted API gateway, contacting AWS support should be your first move—they might help if the deletion was recent. If you’ve exported your API before, you can re-import it, which saves a lot of hassle. If not, having thorough documentation or using tools like CloudFormation or Terraform can streamline the rebuild process. For the future, setting up regular backups and using Infrastructure as Code can help avoid such issues.