You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running gcs-rsync from an ec2 instance which auth's w/ gcp via workload identity.
How would I set the GOOGLE_CLIENT_ID or client_id?
gcs-rsync -u gs://bucket-name/file.test /tmp
Error: StorageError(GcsTokenError(HttpError(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("metadata.google.internal")), port: None, path: "/computeMetadata/v1/instance/service-accounts/default/token", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" })) })))
gcs-rsync -u gs://bucket-name/file.test /tmp
Error: StorageError(GcsTokenError(EnvVarError { key: "GOOGLE_APPLICATION_CREDENTIALS", error: NotPresent }))
[ec2-user@ip-10-50-5-146 ~]$ export GOOGLE_APPLICATION_CREDENTIALS=/home/ec2-user/credentials.json
You have new mail in /var/spool/mail/ec2-user
You can use authorized user or service account json.
Those methods work on CI and local box for instance.
According to gcp doc, it seems that your aws ec2 is running out of gcp.
This is why the Google Metadata api is not available (ec2 is on aws).
Actually, gcp Metadata api, authorized user and service account auth are available. So do not use the -u flag instead use the env var GOOGLE_APPLICATION_CREDENTIALS=./credentials.json
I'm running gcs-rsync from an ec2 instance which auth's w/ gcp via workload identity.
How would I set the GOOGLE_CLIENT_ID or client_id?
gcs-rsync -u gs://bucket-name/file.test /tmp
gcs-rsync -u gs://bucket-name/file.test /tmp
gcs-rsync -u gs://bucket-name/file.test /tmp
cat credentials.json
The text was updated successfully, but these errors were encountered: