1 Answer
- Newest
- Most votes
- Most comments
0
There does appear to be a difference in behavior between the AWS CLI and CDK when it comes to handling of the config and credentials files. I found a GitHub issue on the aws-cdk project that describes the same issue you seem to be facing here (1)
Some are reporting success by adding a source_profile
to their ~/.aws/credentials
file. Despite having the same name, it appears that CDK may not be looking at non-default credentials when supplied with a --profile
You may also find more details on the overall behavior of CDK by adding the --verbose
flag in your CDK commands
(1) https://github.com/aws/aws-cdk/issues/5053#issuecomment-770527518
Relevant content
- asked 4 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 6 months ago