Suggest an edit

S3 Object Storage - Customizing URLs with CNAME

Reviewed on 08 January 2024Published on 21 May 2019
  • Object-Storage
  • domain
  • S3
  • buckets

If you are using Scaleway Object Storage, you might not want the domain name to appear in your bucket’s URL. This may be the case if, for example, you are providing files to download or hosting the images of your website from a bucket. You may prefer a domain name such as to display on your links, instead of

In this tutorial, we show you how to use CNAME to map a domain or subdomain to an Object Storage bucket and access the files stored in the bucket via your own domain name.

Before you start

To complete the actions presented below, you must have:

  • A Scaleway account logged into the console
  • Owner status or IAM permissions allowing you to perform actions in the intended Organization
  • Access to the DNS zone of your domain name
  1. From the Scaleway console, create a new bucket. When entering a name for your bucket, the name must be exactly the same as the domain/subdomain intended to be used with it. For example, to create a bucket accessible at the bucket name must be
  2. Set the bucket ACL with AWS-CLI:
    aws s3api put-bucket-acl --bucket --acl public-read
  3. Log into the administration panel of your domain and create a new record that defines the hostname as an alias for the bucket. For example, if the bucket is located in the Paris region, the CNAME should point to

You can now access the file myapp.tar.gz stored in the bucket directly at instead of the usual URL


SSL is not available when connecting to a bucket in this way.

Docs APIScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCarreer
© 2023-2024 – Scaleway