Skip to content

Commit bcf36c3

Browse files
authored
fix: reorder ak/sk, aws_key_id -> ACCESS_KEY_ID, aws_secret_key -> SECRET_ACCESS_KEY (#2399)
1 parent 08e4772 commit bcf36c3

File tree

14 files changed

+32
-40
lines changed

14 files changed

+32
-40
lines changed

docs/cn/guides/40-load-data/01-load/01-s3.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ CREATE TABLE books
5353
COPY INTO books
5454
FROM 's3://databend-toronto/'
5555
CONNECTION = (
56-
AWS_KEY_ID = '<my-access-key-id>',
57-
AWS_SECRET_KEY = '<your-secret-access-key>',
58-
REGION = 'us-east-2'
56+
ACCESS_KEY_ID = '<your-access-key-id>',
57+
SECRET_ACCESS_KEY = '<your-secret-access-key>'
5958
)
6059
PATTERN = '.*[.]parquet'
6160
FILE_FORMAT = (

docs/en/guides/40-load-data/00-stage/00-what-is-stage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ You can create an external stage with the [CREATE STAGE](/sql/sql-commands/ddl/s
4343
CREATE STAGE my_external_stage
4444
URL = 's3://databend-doc'
4545
CONNECTION = (
46-
AWS_KEY_ID = '<YOUR-KEY-ID>',
47-
AWS_SECRET_KEY = '<YOUR-SECRET-KEY>'
46+
ACCESS_KEY_ID = '<YOUR-KEY-ID>',
47+
SECRET_ACCESS_KEY = '<YOUR-SECRET-KEY>'
4848
);
4949
```
5050

docs/en/guides/40-load-data/00-stage/02-stage-files.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ CREATE STAGE my_external_stage
112112
URL = 's3://databend'
113113
CONNECTION = (
114114
ENDPOINT_URL = 'http://127.0.0.1:9000',
115-
aws_key_id = 'ROOTUSER',
116-
aws_secret_key = 'CHANGEME123'
115+
ACCESS_KEY_ID = 'ROOTUSER',
116+
SECRET_ACCESS_KEY = 'CHANGEME123'
117117
);
118118
```
119119
@@ -238,8 +238,8 @@ CREATE STAGE my_external_stage
238238
URL = 's3://databend'
239239
CONNECTION = (
240240
ENDPOINT_URL = 'http://127.0.0.1:9000',
241-
AWS_KEY_ID = 'ROOTUSER',
242-
AWS_SECRET_KEY = 'CHANGEME123'
241+
ACCESS_KEY_ID = 'ROOTUSER',
242+
SECRET_ACCESS_KEY = 'CHANGEME123'
243243
);
244244
```
245245

docs/en/guides/40-load-data/01-load/00-stage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ CREATE STAGE my_external_stage
166166
URL = 's3://databend'
167167
CONNECTION = (
168168
ENDPOINT_URL = 'http://127.0.0.1:9000',
169-
AWS_KEY_ID = 'ROOTUSER',
170-
AWS_SECRET_KEY = 'CHANGEME123'
169+
ACCESS_KEY_ID = 'ROOTUSER',
170+
SECRET_ACCESS_KEY = 'CHANGEME123'
171171
);
172172
```
173173

docs/en/guides/40-load-data/01-load/01-s3.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ CREATE TABLE books
5353
COPY INTO books
5454
FROM 's3://databend-toronto/'
5555
CONNECTION = (
56-
AWS_KEY_ID = '<my-access-key-id>',
57-
AWS_SECRET_KEY = '<your-secret-access-key>',
58-
REGION = 'us-east-2'
56+
ACCESS_KEY_ID = '<your-access-key-id>',
57+
SECRET_ACCESS_KEY = '<your-secret-access-key>'
5958
)
6059
PATTERN = '.*[.]parquet'
6160
FILE_FORMAT = (

docs/en/guides/40-load-data/04-transform/03-querying-orc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Create an external stage with your Amazon S3 bucket where your iris dataset file
4646
CREATE STAGE orc_query_stage
4747
URL = 's3://databend-doc'
4848
CONNECTION = (
49-
AWS_KEY_ID = '<your-key-id>',
50-
AWS_SECRET_KEY = '<your-secret-key>'
49+
ACCESS_KEY_ID = '<your-key-id>',
50+
SECRET_ACCESS_KEY = '<your-secret-key>'
5151
);
5252
```
5353

docs/en/guides/51-access-data-lake/01-hive.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ TYPE = HIVE
101101
CONNECTION =(
102102
METASTORE_ADDRESS = '127.0.0.1:9083'
103103
URL = 's3://databend-toronto/'
104-
AWS_KEY_ID = '<your_key_id>'
105-
AWS_SECRET_KEY = '<your_secret_key>'
104+
ACCESS_KEY_ID = '<your_key_id>'
105+
SECRET_ACCESS_KEY = '<your_secret_key>'
106106
);
107107

108108
SHOW CREATE CATALOG hive_ctl;

docs/en/guides/81-how-databend-works/04-how-databend-share-data-works.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ SELECT snapshot_location FROM FUSE_SNAPSHOT('default', 'company_sales');
3737
```sql
3838
-- Marketing: Customer behavior analysis
3939
ATTACH TABLE marketing_view (customer_id, product, amount, order_date)
40-
's3://your-bucket/1/23351/' CONNECTION = (AWS_KEY_ID = 'xxx', AWS_SECRET_KEY = 'yyy');
40+
's3://your-bucket/1/23351/' CONNECTION = (ACCESS_KEY_ID = 'xxx', SECRET_ACCESS_KEY = 'yyy');
4141

4242
-- Finance: Revenue tracking
4343
ATTACH TABLE finance_view (order_id, amount, profit, order_date)
44-
's3://your-bucket/1/23351/' CONNECTION = (AWS_KEY_ID = 'xxx', AWS_SECRET_KEY = 'yyy');
44+
's3://your-bucket/1/23351/' CONNECTION = (ACCESS_KEY_ID = 'xxx', SECRET_ACCESS_KEY = 'yyy');
4545

4646
-- HR: Employee info without salaries
4747
ATTACH TABLE hr_employees (employee_id, name, department)

docs/en/sql-reference/10-sql-commands/00-ddl/01-table/10-ddl-create-table-external-location.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ CONNECTION = (
2525
ENDPOINT_URL = 'https://<endpoint-URL>'
2626
ACCESS_KEY_ID = '<your-access-key-ID>'
2727
SECRET_ACCESS_KEY = '<your-secret-access-key>'
28-
REGION = '<region-name>'
2928
ENABLE_VIRTUAL_HOST_STYLE = 'true' | 'false'
3029
)
3130
|
@@ -42,7 +41,6 @@ Connection parameters:
4241
| ENDPOINT_URL | The bucket endpoint URL starting with "https://". To use a URL starting with "http://", set `allow_insecure` to `true` in the [storage] block of the file `databend-query-node.toml`. | Optional |
4342
| ACCESS_KEY_ID | Your access key ID for connecting the AWS S3 compatible object storage. If not provided, Databend will access the bucket anonymously. | Optional |
4443
| SECRET_ACCESS_KEY | Your secret access key for connecting the AWS S3 compatible object storage. | Optional |
45-
| REGION | AWS region name. For example, us-east-1. | Optional |
4644
| ENABLE_VIRTUAL_HOST_STYLE | If you use virtual hosting to address the bucket, set it to "true". | Optional |
4745

4846
For more information on `CONNECTION_NAME`, see [CREATE CONNECTION](../13-connection/create-connection.md)

docs/en/sql-reference/10-sql-commands/00-ddl/01-table/92-attach-table.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,16 @@ This example creates an attached table, which includes all columns from a source
6565

6666
```sql
6767
ATTACH TABLE population_all_columns 's3://databend-doc/1/16/' CONNECTION = (
68-
REGION='us-east-2',
69-
AWS_KEY_ID = '<your_aws_key_id>',
70-
AWS_SECRET_KEY = '<your_aws_secret_key>'
68+
ACCESS_KEY_ID = '<your_aws_key_id>',
69+
SECRET_ACCESS_KEY = '<your_aws_secret_key>'
7170
);
7271
```
7372

7473
This example creates an attached table, which includes only selected columns (`city` and `population`) from a source table stored in AWS S3:
7574

7675
```sql
7776
ATTACH TABLE population_only (city, population) 's3://databend-doc/1/16/' CONNECTION = (
78-
REGION='us-east-2',
79-
AWS_KEY_ID = '<your_aws_key_id>',
80-
AWS_SECRET_KEY = '<your_aws_secret_key>'
77+
ACCESS_KEY_ID = '<your_aws_key_id>',
78+
SECRET_ACCESS_KEY = '<your_aws_secret_key>'
8179
);
8280
```

0 commit comments

Comments
 (0)