Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Maximum amount of ELBs is assumed to be 20 #717

@raphtheb

Description

@raphtheb

Unless i'm missing something, it appears that this SDK always assume that the maximum amount of ELBs within an AWS account is 20. It breaks if you request to have more than 20, with this error message:

failed to satisfy constraint: Member must have length less than or equal to 20\n\tstatus code: 400

I believe i've tracked the issue down to models/apis/elasticloadbalancing/2012-06-01/api-2.json
where the assumption of "max":20 is hardcoded (line 1787 as of typing this).

Wouldn't the expected behaviour be to query the API first for the maximal amount of available ELBs, and then using that number as the "max" value?

Trying to look into this, i appear to have stumbled upon another related issue: Is there no AWS API endpoint that returns the current ELB limit? I have not been able to find one. I have, however, found other projects that also hardcode 20 as the limit: https://github.com/jantman/awslimitchecker/blob/master/awslimitchecker/services/elb.py

If that's the case, i suppose this public API modification would be necessary in order to fix this SDK.

Cheers!

Metadata

Metadata

Assignees

Labels

guidanceQuestion that needs advice or information.service-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions