Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CDK Credentials not found when Bootstrapping

I'm getting the following error within zsh when issuing the command:

Command - ~ % cdk bootstrap aws://******/*region*

Error (snip) - Environment aws://******/*region* failed bootstrapping: Error: Need to perform AWS calls for account ******, but no credentials have been configured

When I run aws configure, I'm able to set my temporary credentials and verify they are written to the Credentials file within users/username/.aws

When I try to run the same commands from an ec2 linux instance, everything works fine. How can I get the cdk to properly locate my credentials file on my local machine?

like image 937
lbrown Avatar asked May 14 '26 12:05

lbrown


1 Answers

Resolve the issue by adding AWS_SESSION_TOKEN to my .aws/credentials file. It would be helpful if you could specify your Session Token right from the aws configure command.

like image 84
lbrown Avatar answered May 16 '26 15:05

lbrown