aws / efs-utils

Utilities for Amazon Elastic File System (EFS)
MIT License
285 stars 186 forks source link

Using sudo breaks the ability to use botocore to get profile credentials #121

Open mjrlee opened 2 years ago

mjrlee commented 2 years ago

mount.efs must be run as root

When using sudo mount -t efs... and aiming to use credentials from a credential_process in ~/.aws/credentials the botocore_credentials_helper function is called. Because the user is root at this point, botocore loads in root's credential and config files and so this doesn't actually work.

raimicha commented 2 years ago

Thanks for the feedback. We’ll have someone take a look.