Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
kerren
3 years agoNew Contributor
Bug - CLI - AWS Plugin MFA Failing
Hi there,
I seem to be experiencing an issue with the CLI and AWS plugin where I select my credentials and try to run an aws command and I get the following error:
[ERROR] 2023/07/26 22:11:...
jinux_go
2 years agoOccasional Contributor
Hello andi_t_1P
I have experience the same issue and resolved it by following the kerren's method.
```
$ rm -rf ~/.aws
$ op plugin run --debug --cache=false -- aws ls s3
8:36PM | DEBUG | Session delegation enabled
8:36PM | DEBUG | NM request: NmRequestAccounts
8:36PM | DEBUG | NM response: Success
8:36PM | DEBUG | NM request: NmRequestAccounts
8:36PM | DEBUG | NM response: Success
[ERROR] 2023/10/25 20:37:00 could not run plugin AWS CLI: failed to provision credentials, encountered error(s):
source profile "default" does not exist in your AWS config file
$ cat ~/.aws/config # This prints nothing
$ echo '[default]' > ~/.aws/config
$ op plugin run --debug --cache=false -- aws s3 ls
8:39PM | DEBUG | Session delegation enabled
8:39PM | DEBUG | NM request: NmRequestAccounts
8:39PM | DEBUG | NM response: Success
8:39PM | DEBUG | NM request: NmRequestAccounts
8:39PM | DEBUG | NM response: Success
(... and the output from aws-cli follows)
```
1Password for Mac 8.10.18 (81018040)
aws-cli/2.13.17 Python/3.11.5 Darwin/22.6.0 source/arm64 prompt/off
macOS 13.6 Apple Silicon