From 9887673754920024a7de259ba6b077cd4b62dbd4 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Mon, 19 Feb 2024 11:28:55 +0800 Subject: [PATCH] reference: add an example for S3 URI in sink-uri (#16514) (#16516) --- external-storage-uri.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/external-storage-uri.md b/external-storage-uri.md index a1e5095eb96d6..6f84b5a0f9a9e 100644 --- a/external-storage-uri.md +++ b/external-storage-uri.md @@ -38,6 +38,16 @@ The following is an example of an Amazon S3 URI for TiDB Lightning and BR. In th s3://external/testfolder?access-key=${access-key}&secret-access-key=${secret-access-key} ``` +The following is an example of an Amazon S3 URI for TiCDC `sink-uri`. + +```shell +tiup cdc:v7.5.0 cli changefeed create \ + --server=http://172.16.201.18:8300 \ + --sink-uri="s3://cdc?endpoint=http://10.240.0.38:9000&access-key=${access-key}&secret-access-key=${secret-access-key}" \ + --changefeed-id="cdcTest" \ + --config=cdc_csv.toml +``` + The following is an example of an Amazon S3 URI for [`IMPORT INTO`](/sql-statements/sql-statement-import-into.md). In this example, you need to specify a specific filename `test.csv`. ```shell