(aws-eks): [alpha] AddonProps missing configurationValues field
Describe the bug
The AddonProps interface is missing a field configurationValues which appears in the documentation, but is not present in the library.
Regression Issue
- [ ] Select this option if this issue appears to be a regression.
Last Known Working CDK Library Version
No response
Expected Behavior
I expected to be able to define the configurationValues for my addons
Current Behavior
When building the following error message is encountered:
Object literal may only specify known properties, and 'configurationValues' does not exist in type 'AddonProps'
Inspecting the AddonProps in my IDE:
/**
* Properties for creating an Amazon EKS Add-On.
*/
export interface AddonProps {
/**
* Name of the Add-On.
*/
readonly addonName: string;
/**
* Version of the Add-On. You can check all available versions with describe-addon-versions.
* For example, this lists all available versions for the `eks-pod-identity-agent` addon:
* $ aws eks describe-addon-versions --addon-name eks-pod-identity-agent \
* --query 'addons[*].addonVersions[*].addonVersion'
*
* @default the latest version.
*/
readonly addonVersion?: string;
/**
* The EKS cluster the Add-On is associated with.
*/
readonly cluster: ICluster;
/**
* Specifying this option preserves the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on.
* If an IAM account is associated with the add-on, it isn't removed.
*
* @default true
*/
readonly preserveOnDelete?: boolean;
}
Reproduction Steps
// CoreDNS Addon
new eks.Addon(this, 'CorednsAddon', {
addonName: 'coredns',
addonVersion: 'v1.11.3-eksbuild.1',
cluster: this._cluster,
configurationValues: ['somevalue'] << field does not exist
Possible Solution
No response
Additional Information/Context
No response
AWS CDK Library version (aws-cdk-lib)
2.191.0-alpha.0
AWS CDK CLI version
2.191.0
Node.js Version
20.x
OS
Linux 5.10.237-211.949.amzn2int.x86_64
Language
TypeScript
Language Version
4.9.5
Other information
No response
This was resolved by upgrading both my aws-cdk version and the alpha constructs version to 2.201.0-alpha.0. I needed to blow out my package-lock file and clean out the node_modules for this to get picked up in my workspace.
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.