Sounds like an API Gateway error. Have you tried checking the API Gateway to see if there are some API Gateway resources referencing the function you originally deleted?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Deployment failing after deleting API Gateway. How to recover? | 13 | 11872 | August 23, 2022 | |
| Apigateway deleted and deploy fails | 2 | 4116 | June 15, 2018 | |
| Failed to associate api key with usage plan (Invalid API Identifier) | 2 | 1710 | September 21, 2023 | |
| Serverless is not able to create IAM role and lambda function after deleting them | 3 | 10197 | February 21, 2019 | |
| On deploy, AWS error "Invalid API Key identifier specified" | 1 | 4299 | March 11, 2022 |