Skip to main content
Sep 13, 2022 2:50 PM UTC
Question

UID check in CLI on AWS Lambda

Hi,
I am trying to deploy CLI on AWS Lambda, but the integrated UID check on config folder https://1password.community/discussion/comment/589909/#Comment_589909 blocks the CLI from running with error "Can't continue. We can't safely access "[CONFIGFOLDER]" because it's not owned by the current user. Change the owner or logged in user and try again."

The user under which is the script running on Lambda is obviously different from the user used for package creation and deployment.

Is there any way to avoid or circumvent this problem?

Thanks.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided

4 replies

1Password Employee
Sep 28, 2022 12:22 PM UTC

Hi @ciba, sorry for the late response, and thanks for bringing this up. Indeed there is a conflict in the perceived owners of the CLI. We perform this check for your own security. The regular CLI is not meant for use cases such as the one you presented. However, our Service Accounts beta feature is, and would resolve your issue. Check this thread https://1password.community/discussion/131233/join-our-beta-test-for-1password-service-accounts-launching-mid-july#latest, to see if you could still sign up for using it as a beta member.

All the best and hope this helps,
Andi

Sep 28, 2022 1:58 PM UTC

The beta is closed for new participants, but for now I am adding the account altogether on each run, which avoids this problem.

1Password Employee
Oct 7, 2022 3:19 PM UTC

Great, happy that you managed to fix it. You could also give 1Password Connect a look.

Best,
Andi

Nov 10, 2022 5:43 AM UTC

@andi_t_1P I am also facing similar problem with deploying 1password CLI on aws lambda

For me, its give "Command Failed"

The same works fine when I run in local. I have already tried giving --config flag to /tmp directory but that doesnt work either.

Can you quickly help me resolve this ?