Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8sgpt analyze --explain --backend amazonbedrock fails with AccessDeniedException error #1022

Open
3 of 4 tasks
gladwinz opened this issue Mar 19, 2024 · 3 comments
Open
3 of 4 tasks
Labels

Comments

@gladwinz
Copy link

gladwinz commented Mar 19, 2024

Checklist

  • I've searched for similar issues and couldn't find anything matching
  • I've included steps to reproduce the behavior

Affected Components

  • K8sGPT (CLI)
  • K8sGPT Operator

K8sGPT Version

0.3.28

Kubernetes Version

v1.28.0

Host OS and its Version

MacOS

Steps to reproduce

  1. Run k8sgpt auth add --backend amazonbedrock --model anthropic.claude-v2 to add the amazonbedrock provider
  2. Run k8sgpt analyze --explain --backend amazonbedrock to analyze issues within the cluster using Amazon Bedrock

Expected behaviour

The k8sgpt should analyze and explain any failures within the cluster with recommendations on how to rectify the issues.

Actual behaviour

Error message of Error: failed while calling AI provider amazonbedrock: AccessDeniedException: You don't have access to the model with the specified model ID.

Additional Information

The above error will be rectified if we run this command k8sgpt auth add --backend amazonbedrock --model anthropic.claude-v2 -r us-west-2 to add the amazonbedrock provider while providing the region.

@JuHyung-Son
Copy link
Contributor

can you call bedrock request outside k8sgpt?

@gladwinz
Copy link
Author

can you call bedrock request outside k8sgpt?

Yeap. I was able to call the bedrock API with no issue outside of k8sgpt.

@AlexsJones
Copy link
Member

This is due to the region I believe. Iastest build has a fix, can you please try the new release? v0.3.29

  k8sgpt auth add -b amazonbedrock -h
  k8sgpt auth add -b amazonbedrock --providerRegion eu-central-1 -m anthropic.claude-v2
  k8sgpt analyze -b amazonbedrock -e

Should work as expected

Screenshot 2024-03-22 at 13 58 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Proposed
Development

No branches or pull requests

3 participants