-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCP Identity federation auth failure with AWS #1306
Comments
A few questions:
Generally, this issue belongs to https://github.com/googleapis/google-auth-library-java |
I didn't add the non-java stack trace. Added full stack trace below.
Yes, this is a Databricks cluster running on AWS ec2
I tested identity federation using the same credential config.json using google python client. It works fine. My suspicion is that the environment variables (needed when reaching AWS url) are not passed to the java runtime. I also tried to set the environment variables in spark executorEnv or workerEnv but no luck. Full stack trace:
|
Hi,
Spark 3.4.1
Scala 2.12
I got error when using GCP identity federation with AWS credentials. It seems that it has trouble to use the environment variables defined for AWS (AWS_REGION, AWS_ACCESS_KEY_ID and etc).
With following code
credential_file_path
is where I stored theconfig.json
followed thisThis gives error Failed to retrieve AWS region. I believe it's due to not be able use the env vars already defined defined.
Traceback:
The text was updated successfully, but these errors were encountered: