'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?
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | lbrown |