aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

eks: Support latest AWS Load Balancer Controller versions

Open arlampin opened this issue 6 months ago • 1 comments

Describe the feature

Latest version as of now is 2.13.2, but CDK only supports versions up to 2.8.2 (alb-controller.ts)

Use Case

I would like to use the latest controller version without manual setup

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.201.0

AWS CDK CLI version

2.1018.1

Environment details (OS name and version, etc.)

arlampin avatar Jun 15 '25 09:06 arlampin

Hi @arlampin,

Thank you for reporting this issue. You're absolutely right that CDK is currently lagging behind the latest AWS Load Balancer Controller releases. The CDK currently supports versions up to 2.8.2, while the latest available version is 2.13.2.

This is a recurring pattern we've seen in issues like #31082 and #25307, where the community requests support for newer controller versions. The fix involves:

  1. Adding new version constants to the AlbControllerVersion class
  2. Adding corresponding IAM policy files for each version
  3. Ensuring proper Helm chart version mapping

This is a great opportunity for community contribution! The implementation is straightforward and follows an established pattern. Each new version requires: • A new static readonly property in AlbControllerVersion • The corresponding IAM policy JSON file in the addons directory • Proper Helm chart version mapping

Would you be interested in contributing a PR to add support for the missing versions (2.9.0 through 2.13.2)? I'd be happy to provide guidance on the implementation details.

As a workaround until this is implemented, you can use AlbControllerVersion.of('v2.13.2', 'helm-chart-version') with a custom IAM policy, though this requires more manual configuration.

pahud avatar Jun 16 '25 15:06 pahud

Would you be interested in contributing a PR to add support for the missing versions (2.9.0 through 2.13.2)? I'd be happy to provide guidance on the implementation details.

Yes, I can try to get this done.

arlampin avatar Jun 18 '25 20:06 arlampin

Hi @pahud I tried to contribute this in #34761, but ran into some problems with integration test running

arlampin avatar Jun 19 '25 10:06 arlampin