In our v2 model(apigatewayv2), an integration is independent from a route and it can be reused by multiple routes. A route has Target attribute to refer the integration. If you configure a route and an integration in the Console, it will create a route, an integration and update the route with a target reference to the integration. However, when you remove a route, it will remove the route only. This means a number of routes does not always match to a number of integrations.
It is likely that you have dangling integrations by creating/removing/re-creating route(s) in the Console. Unfortunately the Console does not show those dangling integrations. Can you check how many integrations are in your API with CLI? Our integration per API is limited to 300.
aws apigatewayv2 get-integrations --api-id <YOUR_API_ID>
If you already have 300 integrations, use CLI to find which integration(s) are used by current routes.
aws apigatewayv2 get-target --api-id <YOUR_API_ID> | grep Target
This will give integrationIds are currently used.
Then remove unused integrations using CLI.
aws apigatewayv2 delete-integration --integration-id <UNUSED_INTEGRATION_ID>
I'll add a backlog to provide a better user experience for this.
Ay ok thank you! Yes im sure I had alot of left over integrations because i've been removing alot of routes and re-creating them :D Thanks for this info!!!
Maximum number of Elastic IPs has been reached.asked 3 years ago
The maximum number of addresses has been reached while attempting to an EB managed updateAccepted Answerasked 6 months ago
Error: maximum number of addresses has been reached.Accepted Answerasked 6 months ago
limits with API gateway custom authorizer for number of requestsAccepted Answerasked 2 years ago
Maximum number of Jobs queuedasked 3 years ago
Maximum number of workers vs glue.driver.ExecutorAllocationManager.executors.numberMaxNeededExecutorsAccepted Answerasked a month ago
API Gateway: Difference between "Maximum integration timeout" and "TimeoutInMillis"Accepted Answerasked 2 years ago
Maximum number of Integrations for this API has been reached?asked 4 years ago
Maximum number of databases?asked 3 years ago
[API Gateway] What is the maximum size of the connection ID used in @connections commands?asked 6 months ago