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.
mount.efs must be run as root
When using
sudo mount -t efs...
and aiming to use credentials from acredential_process
in~/.aws/credentials
thebotocore_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.