Introducing AWS S3 Support in AWS SDK for Delphi

A topic for discussion about the blog post Introducing AWS S3 Support in AWS SDK for Delphi.

What are your thoughts?

Good idea, and great job! Thank you.

Is it possible to use another S3 compatible provider (like Backblaze B2 or Wasabi) instead of Amazon, by configuring another URL endpoint?

Finally, thanks to the quality of the code, I found the solution using TAmazonS3Config:

var
  Request: IPutObjectRequest;
  BucketName, Content, ObjectKey: string;
  RegionConfig: TAmazonS3Config;

begin
  RegionConfig := TAmazonS3Config.Create;
  RegionConfig.ServiceURL := 's3.eu-west-2.wasabisys.com';  // Wasabi S3 service

  S3Client := TAmazonS3Client.Create(MyAccessKey, myAccessSecretKey, RegionConfig);

......

  Request := TPutObjectRequest.Create;
  Request.BucketName := BucketName;
  Request.ContentBody := Content;
  Request.Key := ObjectKey;

  S3Client.PutObject(Request);

....
end;


Thank you @wlandgraf

1 Like

Hi @Ghazali,

Indeed, it’s possible as you found out. We actually also use Cloudflare R2 with our AWS SDK for Delphi, and it works just fine.