@@ -59,11 +59,10 @@ Below is an example of configuring a lifecycle configuration (a collection of li
5959
6060``` js title="Configure the S3 client to interact with R2"
6161const client = new S3 ({
62- endpoint: " https://4893d737c0b9e484dfc37ec392b5fa8a .r2.cloudflarestorage.com" ,
62+ endpoint: " https://<account_id> .r2.cloudflarestorage.com" ,
6363 credentials: {
64- accessKeyId: " 7dc27c125a22ad808cd01df8ec309d41" ,
65- secretAccessKey:
66- " 1aa5c5b0c43defdb88f567487c071d17e234126133444770a706ae09336c57a4" ,
64+ accessKeyId: " <access_key_id>" ,
65+ secretAccessKey: " <access_key_secret>" ,
6766 },
6867 region: " auto" ,
6968});
@@ -155,11 +154,10 @@ import S3 from "aws-sdk/clients/s3.js";
155154
156155// Configure the S3 client to talk to R2.
157156const client = new S3 ({
158- endpoint: " https://4893d737c0b9e484dfc37ec392b5fa8a .r2.cloudflarestorage.com" ,
157+ endpoint: " https://<account_id> .r2.cloudflarestorage.com" ,
159158 credentials: {
160- accessKeyId: " 7dc27c125a22ad808cd01df8ec309d41" ,
161- secretAccessKey:
162- " 1aa5c5b0c43defdb88f567487c071d17e234126133444770a706ae09336c57a4" ,
159+ accessKeyId: " <access_key_id>" ,
160+ secretAccessKey: " <access_key_secret>" ,
163161 },
164162 region: " auto" ,
165163});
@@ -199,11 +197,10 @@ import S3 from "aws-sdk/clients/s3.js";
199197
200198// Configure the S3 client to talk to R2.
201199const client = new S3 ({
202- endpoint: " https://4893d737c0b9e484dfc37ec392b5fa8a .r2.cloudflarestorage.com" ,
200+ endpoint: " https://<account_id> .r2.cloudflarestorage.com" ,
203201 credentials: {
204- accessKeyId: " 7dc27c125a22ad808cd01df8ec309d41" ,
205- secretAccessKey:
206- " 1aa5c5b0c43defdb88f567487c071d17e234126133444770a706ae09336c57a4" ,
202+ accessKeyId: " <access_key_id>" ,
203+ secretAccessKey: " <access_key_secret>" ,
207204 },
208205 region: " auto" ,
209206});
0 commit comments