You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to execute cdk commands for a different profile #558
and using the default .aws/credentials file filled with credentials works and diffs to lab profile.
Current behavior
Without credentials file, or with an empty one, the above command returns
Need to perform AWS calls for account <lab_account_id>, but no credentials have been configured
In the verbose logs, I can see:
Unable to determine the default AWS account (CredentialsProviderError): Could not resolve credentials using profile: [default] in configuration/credentials file(s).
here's my .aws/config file:
[default]
region = eu-central-1
[profile lab]
region = eu-central-1
role_arn = arn:aws:iam::<lab_account_id>:role/MyLabRole
source_profile = default
The 1password AWS plugin is currently working with this configuration (for instance, aws s3 ls --profile lab show my "lab" s3 buckets), but cdk does not.
How can I solve?
Activity