aws-quickstart / cdk-eks-blueprints

AWS Quick Start Team
Apache License 2.0
460 stars 206 forks source link

(AdotCollectorAddOn): (Error resolving version for addon) #1059

Open vpopiolrccl opened 3 months ago

vpopiolrccl commented 3 months ago

Describe the bug

Adding AdotCollectorAddOn causes errors during synth and creation errors during stack deployment

Expected Behavior

adotaddOn should be created

Current Behavior

Adding AdotCollectorAddOn causes these errors during synth: 2024-08-12 23:56:11.342 WARN /node_modules/@aws-quickstart/eks-blueprints/lib/addons/core-addon/index.ts:208 main AccessDeniedException User is not authorized to perform this action, AccessDeniedException, client, [object Object], [object Object] error stack: • index.js de_AccessDeniedExceptionRes /node_modules/@aws-sdk/client-eks/dist-cjs/index.js:2539 • index.js de_CommandError /node_modules/@aws-sdk/client-eks/dist-cjs/index.js:2512 • task_queues processTicksAndRejections internal/process/task_queues:95 • index.js async /node_modules/@smithy/middleware-serde/dist-cjs/index.js:35 • index.js async /node_modules/@smithy/core/dist-cjs/index.js:165 • index.js async /node_modules/@smithy/middleware-retry/dist-cjs/index.js:320 • index.js async /node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34 • index.ts async AdotCollectorAddOn.provideVersion /node_modules/@aws-quickstart/eks-blueprints/lib/addons/core-addon/index.ts:187 • index.ts async AdotCollectorAddOn.deploy /node_modules/@aws-quickstart/eks-blueprints/lib/addons/core-addon/index.ts:90 And further down: 2024-08-12 23:56:11.345 WARN /node_modules/@aws-quickstart/eks-blueprints/lib/addons/core-addon/index.ts:210 main Failed to retrieve add-on versions from EKS for add-on adot. 2024-08-12 23:56:11.346 WARN /node_modules/@aws-quickstart/eks-blueprints/lib/addons/core-addon/index.ts:211 main Possible reasons for failures - Unauthorized or Authentication failure or Network failure on the terminal. 2024-08-12 23:56:11.347 WARN /node_modules/@aws-quickstart/eks-blueprints/lib/addons/core-addon/index.ts:212 main Falling back to default version. DEBUG Core add-on adot has autoselected version v0.94.1-eksbuild.1 Then, when the stack is being deployed, it fails at the creation of the adotaddOn resource with this error: Resource handler returned message: "Addon version specified is not supported (Service: Eks, Status Code: 400, Request ID: aa780b9c-42ef-4033-a41c-78c02af6fb5d)" (RequestToken: a4b84fcf-b769-482b-b518-fb06c871e2ed, HandlerErrorCode: InvalidRequest)

Reproduction Steps

new blueprints.addons.AdotCollectorAddOn()

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.146.0 (build b368c78)

EKS Blueprints Version

1.15.1

Node.js Version

v21.6.1

Environment details (OS name and version, etc.)

Mac OSX 14.5

Other information

No response

elamaran11 commented 3 months ago

@vpopiolrccl Your terminal should have AWS profile and AWS_REGION setup so your cdk command can access to retrieve the ADOT Addon version. That should also solve your next problem of picking the right version for your Addon. Could you please tell us what version you are using K8s cluster?