helpful-psychiatrist-67296
08/13/2024, 11:28 AMKEY
and SECRET
for this bucket. Could someone please guide me on how to do this? Thanks.
const bucket = new cloudflare.R2Bucket("user-r2-bucket", {
accountId: CLOUDFLARE_ACCOUNT_ID!,
name: bucketName,
location: region,
});
flat-grass-82597
08/13/2024, 1:58 PMimport pulumi
import pulumi_cloudflare as cloudflare
# Replace these values accordingly
account_id = "your-account-id"
bucket_name = "your-bucket-name"
location = "your-location"
# Create the R2 bucket
bucket = cloudflare.R2Bucket(
"user-r2-bucket",
account_id=account_id,
name=bucket_name,
location=location,
)
# Create access key for R2 bucket
access_key = cloudflare.R2AccessKey(
"r2-access-key",
account_id=account_id,
service="s3",
)
helpful-psychiatrist-67296
08/13/2024, 2:17 PM