Repository navigation
Does aws login work with CDK?
#36360
Unanswered
khaitranhq
asked this question in
Q&A
Replies: 2 comments
|
try this - |
0 replies
|
If you're using the new browser-based In practice, I’d verify the profile with the CLI first, then run CDK in the same profile/session: aws sts get-caller-identity --profile personal_account
AWS_PROFILE=personal_account cdk diffA couple of things worth checking if
If this is an IAM Identity Center / SSO profile, this flow is usually the most reliable: aws sso login --profile personal_account
AWS_PROFILE=personal_account cdk diffSo yes, CDK can work with browser-based auth, but I’d still treat |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Nowadays, AWS CLI can be authenticated with browser sessions via
aws login. However, looks like the authenticated profile with this method can't be used for AWS. I triedcdk diff --profile personal_accountbut it showedNeed to perform AWS calls for account 123456890, but no credentials have been configuredAll reactions