Open rabernat opened 3 months ago
I think this is due to our default credentials somehow conflicting with credentials loaded through dotenv. Thanks for reporting that a workaround was needed!
What are the "default credentials". You're talking about the AWS credentials that are already associated with the environment?
FWIW, I experienced basically the same problem with our Arraylake token environment variable, which couldn't possibly be part of your default credentials.
That's correct. Fused environments have a set of credentials associated with them by default. It would indeed make sense to use different variable names to avoid conflicts.
If you share a reproduceable example of how you intended to use the Arraylake token we can take a look to ensure there's a path forward for all users.
I'm trying to load private data from S3 in a fused UDF, and I want to make sure I'm doing it the "right" way.
I'm trying to follow these instructions: https://docs.fused.io/basics/utilities/#environment-variables In one UDF, I've got this:
In the second UDF I've got this.
In most normal Python environments, boto3 will automatically get the credentials from the environment variables without having to pass them explicitly (see https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html#environment-variables). However, in the fused UDF, this is not working for some reason, and if I don't pass the credentials explicitly, I get the "The provided token is malformed or otherwise invalid" error.
This is obviously not a huge problem. The workaround--explicitly passing the credentials--is easy enough. But I thought I would open this issue to try to understand better what is going on here.