AWS Shell Plugin and 1Password
Running into something like this:
$ aws s3 ls
[ERROR] 2023/01/05 01:07:46 could not run plugin AWS CLI: failed to provision credentials, encountered error(s):
region is required for the AWS Shell Plugin MFA workflow: set 'default region' in 1Password or set the 'AWS_DEFAULT_REGION' environment variable yourself
$ op plugin inspect aws
AWS CLI
Credential type: Access Key
Configured Aliases
✔ Alias for "aws" configured
✔ Aliases sourced (/home/$user/.config/op/plugins.sh)
Configured Credentials
✔ "AWS $OrgName: $User" (vault: "$Vault")
Configured for current terminal session.
When you make a call, it hangs and then generates that output.
We generally don't set the default region when configuring aws-cli for any profile.
And even if you run:
$ aws configure set region us-west-2 --profile $profile
the same error is triggered.
Can't seem to find any help resource that has anything to say about it.
Thanks
1Password Version: 8.9.10
Extension Version: Not Provided
OS Version: Ubuntu (Pop!OS 22.04)
Browser: Not Provided