Object storage
Anything that works with a local path works with a URL. Credentials come from the standard environment variables (AWS_*, GOOGLE_*, AZURE_*) or the usual config files (see Credentials below):
CREATE VIEW follows AS SELECT * FROM 's3://my-bucket/social/follows/*.parquet';
CREATE PROPERTY GRAPH social EDGE TABLES (follows SOURCE KEY (follower) DESTINATION KEY (followee));
SELECT * FROM pagerank(social) ORDER BY pagerank DESC LIMIT 10;gs://, az:// and https:// work the same way. Ursa reads only the columns a query needs, and stores the graph index in the database file, so the second query does not read the edges again.
Credentials
Section titled “Credentials”Ursa finds credentials where each cloud’s own tools do. It looks in the places below in order, and uses the first that has credentials. Nothing is stored in the database file.
S3 (s3://):
-
Environment variables:
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY, plusAWS_SESSION_TOKENfor temporary credentials. -
An AWS profile in
~/.aws/credentialsand~/.aws/config. Ursa reads the profile thatAWS_PROFILEnames, ordefault. The profile can hold:- access keys;
- an SSO login (run
aws sso loginfirst); - a role to assume (
role_arnwithsource_profile); - a
credential_process.
AWS_SHARED_CREDENTIALS_FILEandAWS_CONFIG_FILEpoint to other files. IfAWS_PROFILEnames a profile that has no credentials, the query fails. Ursa doesn’t go on to the sources below. -
Web identity:
AWS_WEB_IDENTITY_TOKEN_FILEandAWS_ROLE_ARN, as on EKS. -
Container credentials:
AWS_CONTAINER_CREDENTIALS_RELATIVE_URIorAWS_CONTAINER_CREDENTIALS_FULL_URI, as on ECS. -
The instance’s role, from the EC2 instance metadata service.
AWS_PROFILE=analytics ursa -c "SELECT count(*) FROM 's3://my-bucket/follows/*.parquet'"The region comes from AWS_REGION or AWS_DEFAULT_REGION. If neither is set, Ursa asks S3 where the bucket is. If S3 doesn’t answer, Ursa uses the profile’s region.
Some settings for other cases:
- An S3-compatible store (MinIO, R2): set
AWS_ENDPOINT. For a plainhttp://endpoint, also setAWS_ALLOW_HTTP=true. - A public bucket: set
AWS_SKIP_SIGNATURE=trueand no credentials are needed.
Ursa reads profiles through aws-config, the AWS SDK’s own configuration loader, in the aws-profile feature of ursa-cli. The feature is on by default. A build without it (--no-default-features) skips step 2.
Google Cloud Storage (gs://):
- A service account key: a file named by
GOOGLE_SERVICE_ACCOUNT(orGOOGLE_SERVICE_ACCOUNT_PATH), or the key’s JSON inGOOGLE_SERVICE_ACCOUNT_KEY. - Application default credentials: the file
GOOGLE_APPLICATION_CREDENTIALSnames, or the onegcloud auth application-default loginwrites to~/.config/gcloud/. - The instance’s service account, from the GCE metadata server.
Azure Blob Storage (az://, abfs://, abfss://, adl://). Set the account with AZURE_STORAGE_ACCOUNT_NAME, then the credentials:
- An account key:
AZURE_STORAGE_ACCOUNT_KEY. - Workload identity:
AZURE_CLIENT_ID,AZURE_TENANT_IDandAZURE_FEDERATED_TOKEN_FILE, as on AKS. - A service principal:
AZURE_CLIENT_ID,AZURE_CLIENT_SECRETandAZURE_TENANT_ID. - A SAS token:
AZURE_STORAGE_SAS_KEY. - The Azure CLI’s login, when
AZURE_USE_AZURE_CLI=true. - A managed identity, from the instance metadata service.
HTTP (https://, http://) URLs are read without credentials.