aws-samples / aws-genai-llm-chatbot

A modular and comprehensive solution to deploy a Multi-LLM and Multi-RAG powered chatbot (Amazon Bedrock, Anthropic, HuggingFace, OpenAI, Meta, AI21, Cohere, Mistral) using AWS CDK on AWS
https://aws-samples.github.io/aws-genai-llm-chatbot/
MIT No Attribution
1.09k stars 327 forks source link

current credentials could not be used to assume the role #454

Closed alexeyshishkin01 closed 1 month ago

alexeyshishkin01 commented 6 months ago

Dear all,

During the deployment via 'npx cdk deploy' in Cloud9 environment I get the following warning messages:

current credentials could not be used to assume 'arn:aws:iam::XXXXXXXXXXXX:role/cdk-hnb659fds-lookup-role-XXXXXXXXXXXX-YYYYYYYYY', but are for the right account. Proceeding anyway. current credentials could not be used to assume 'arn:aws:iam::XXXXXXXXXXXX:role/cdk-hnb659fds-deploy-role-XXXXXXXXXXXX-YYYYYYYYY', but are for the right account. Proceeding anyway. current credentials could not be used to assume 'arn:aws:iam::XXXXXXXXXXXX:role/cdk-hnb659fds-file-publishing-role-XXXXXXXXXXXX-YYYYYYYYY', but are for the right account. Proceeding anyway. current credentials could not be used to assume 'arn:aws:iam::XXXXXXXXXXXX:role/cdk-hnb659fds-image-publishing-role-XXXXXXXXXXXX-YYYYYYYYY', but are for the right account. Proceeding anyway.

and the deployment rolls back.

I have admin permissions and the roles mentioned above exist.

How can I fix this issue ?

best regards Alexey Shishkin

alexeyshishkin01 commented 6 months ago

it looks like the issue was with the restrictions for temporary managed credentials in Cloud9, so I had to switch to SSO

am I alone who hit this issue ?

yota-p commented 4 months ago

faced same issue on Cloud9. switching to different AWS credentials worked for me

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 30 days since being marked as stale.