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

aws-eks-v2-alpha: eks.Addon missing support for {PodIdentityAssociations, ResolveConflicts, ServiceAccountRoleArn} passing

Open guessi opened this issue 5 months ago • 1 comments

Describe the feature

I'm aware it could be done by eks.CfnAddon, the FR here is seeking for support from eks.Addon directly.

eks.CfnAddon(stack, '...', {
        clusterName: ...,
        addonName: ...,
        addonVersion: ...,
        resolveConflicts: ...,
        podIdentityAssociations: ...,
        configurationValues: ...,
    });

Would be nice to have {PodIdentityAssociations, ResolveConflicts, ServiceAccountRoleArn} for eks.Addon.

I can see originally issue report at #34001 was partially resolved by #34061.

However there still have missing props support as stated at https://github.com/aws/aws-cdk/issues/34001#issuecomment-2902277393

Use Case

It's nice to see Announcing the new AWS CDK EKS v2 L2 Constructs support

  • https://aws.amazon.com/blogs/devops/announcing-the-new-aws-cdk-eks-v2-l2-constructs/

Seeking for missing props passing support.

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)

@aws-cdk/[email protected]

AWS CDK CLI version

2.1019.2 (build c29855e)

Environment details (OS name and version, etc.)

n/a

guessi avatar Jul 04 '25 04:07 guessi

Hi @guessi,

Thank you for this feature request! You're absolutely right that the EKS v2 alpha Addon construct is missing support for several important CloudFormation properties that are available in the underlying CfnAddon construct.

While PR #34061 successfully added ConfigurationValues support, the following properties are still missing from the high-level Addon construct:

  • PodIdentityAssociations - For EKS Pod Identity associations
  • ResolveConflicts - For handling addon conflicts (NONE | OVERWRITE | PRESERVE)
  • ServiceAccountRoleArn - For specifying IAM roles for service accounts

This is a valid enhancement request that would improve the developer experience by providing full CloudFormation feature parity in the higher-level construct, eliminating the need to drop down to CfnAddon for these advanced configurations.

The implementation would involve:

  1. Extending the AddonProps interface to include these properties
  2. Updating the Addon constructor to pass them through to the underlying CfnAddon
  3. Adding appropriate TypeScript types and documentation

This would be a non-breaking change since all new properties would be optional.

Would you be interested in contributing a PR for this enhancement? The implementation should be straightforward following the pattern established in PR #34061 for ConfigurationValues.

This enhancement would significantly improve the usability of the EKS v2 constructs for advanced addon configurations!

pahud avatar Jul 07 '25 14:07 pahud