Skip to content

Apache DataFusion SQL Query Engine

Update cli.md (#4329)

Vrishabhe817d75bbf40
diff --git a/docs/source/user-guide/cli.md b/docs/source/user-guide/cli.md
index 91fe37d0d9..52f194ae26 100644
--- a/docs/source/user-guide/cli.md
+++ b/docs/source/user-guide/cli.md
@@ -155,13 +155,19 @@ LOCATION '/path/to/aggregate_test_100.csv';
The CLI can query data in S3 if the following environment variables are defined:
-- `AWS_REGION`
+- `AWS_DEFAULT_REGION`
- `AWS_ACCESS_KEY_ID`
- `AWS_SECRET_ACCESS_KEY`
-Note that the region must be set to the region where the bucket exists until the following issue is resolved:
+Details of the environment variables that can be used are
-- https://github.com/apache/arrow-rs/issues/2795
+- AWS_ACCESS_KEY_ID -> access_key_id
+- AWS_SECRET_ACCESS_KEY -> secret_access_key
+- AWS_DEFAULT_REGION -> region
+- AWS_ENDPOINT -> endpoint
+- AWS_SESSION_TOKEN -> token
+- AWS_CONTAINER_CREDENTIALS_RELATIVE_URI -> <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html>
+- AWS_ALLOW_HTTP -> set to "true" to permit HTTP connections without TLS
Example:
@@ -169,12 +175,12 @@ Example:
$ aws s3 cp test.csv s3://my-bucket/
upload: ./test.csv to s3://my-bucket/test.csv
-$ export AWS_REGION=us-east-2
+$ export AWS_DEFAULT_REGION=us-east-2
$ export AWS_SECRET_ACCESS_KEY=***************************
$ export AWS_ACCESS_KEY_ID=**************
-$ ./target/release/datafusion-cli
-DataFusion CLI v12.0.0
+$ datafusion-cli
+DataFusion CLI v14.0.0
❯ create external table test stored as csv location 's3://my-bucket/test.csv';
0 rows in set. Query took 0.374 seconds.
❯ select * from test;