Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud CDN
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • Troubleshooting

In this article:

  • Getting started
  • Create a CDN resource
  • Upload your content to the CDN
  • Set up a CNAME record for your domain
  • Test the CDN

Getting started with Yandex Cloud CDN

Written by
Yandex Cloud
Improved by
Danila N.
Updated at April 22, 2025
  • Getting started
  • Create a CDN resource
  • Upload your content to the CDN
  • Set up a CNAME record for your domain
  • Test the CDN

Configure content sharing via a CDN using a Object Storage bucket as an example:

  1. Create a CDN resource.
  2. Upload your content to the CDN.
  3. Configure a CNAME record for your domain.
  4. Test the CDN.

Getting startedGetting started

  1. Make sure you have a domain name and can access the DNS settings on the website of your DNS hosting provider. This is usually the company that registered your domain.

  2. Go to the management console and log in to Yandex Cloud or sign up if not signed up yet.

  3. If you do not have a folder yet, create one:

    1. In the management console, select the appropriate cloud from the list on the left.

    2. At the top right, click Create folder.

    3. Give your folder a name. The naming requirements are as follows:

      • It must be from 2 to 63 characters long.
      • It may contain lowercase Latin letters, numbers, and hyphens.
      • It must start with a letter and cannot end with a hyphen.
    4. Optionally, specify the description for your folder.

    5. Select Create a default network. This will create a network with subnets in each availability zone. Within this network, you will also have a default security group, inside which all network traffic will be allowed.

    6. Click Create.

  4. Go to the folder page and select Cloud CDN.

  5. If the CDN provider is not activated yet, click Activate provider. A connection will be established automatically.

    If you do not see the Activate provider button and you can create resources and origin groups, it means that the provider is already activated. Proceed to the next step.

  6. If you do not have a Object Storage bucket yet:

    1. Create a bucket.
    2. Enable public access to the objects in the bucket and the object list.
    3. Upload content to the bucket.

Create a CDN resourceCreate a CDN resource

  1. Go to the folder page and select Cloud CDN.

  2. In the CDN resources tab, click Create resource.

  3. Configure your CDN resource as follows:

    • Content query: Select From one origin.

    • Origin type: Select Bucket.

    • Bucket: Select the bucket created in Object Storage.

    • Domain names for content distribution: Specify the primary domain name that you will use in your website links to content posted on the CDN, e.g., cdn.example.com.

      Alert

      You cannot change the primary domain name used for content distribution after creating a CDN resource.

    • Under Additional settings:

      1. In the Origin request protocol field, select HTTP.

      2. In the Host header field, select Custom.

      3. In the Header value field, specify the domain name from the bucket URL in <bucket_name>.storage.yandexcloud.net format. You do not need to specify the schema (http or https). For example:

        my-bucket.storage.yandexcloud.net
        

        Alert

        If an invalid Host header is configured, Object Storage will respond to CDN server requests with errors.

  4. Click Create.

Upload your content to the CDNUpload your content to the CDN

Tip

We recommend that you preload large content to the CDN (for example, files larger than 200 MB). This is an optional step. If you skip uploading content at this point, it will be uploaded to the CDN automatically when a user tries to access it for the first time.

To preload content to CDN servers:

  1. Go to the Content tab.

  2. Click Preload content.

  3. In the File path field, enter the names of the files stored in the bucket, omitting the bucket name, e.g.:

    /index.html
    /static/styles.css
    /static/app.js
    
  4. Click Preload content.

Set up a CNAME record for your domainSet up a CNAME record for your domain

  1. In the Overview tab, under DNS settings, copy to the clipboard the URL generated on the .edgecdn.ru domain.

  2. Go to your domain's DNS settings on the site of your DNS hosting provider.

  3. Edit the relevant CNAME record so that it points to the previously copied URL on the .edgecdn.ru domain. For example, if the domain name you specified when creating your CDN resource is cdn.example.com, you need to create the following CNAME record or replace with it the existing record for cdn:

    cdn CNAME cl-********.edgecdn.ru.
    

    Note

    Do not use an ANAME resource record with domain names for content distribution; otherwise, the end user will get a response from a CDN server not linked to the user's geolocation. The response will always be the same for all users.

Test the CDNTest the CDN

  1. Wait until the DNS records are updated. This may take several hours.

  2. Make sure the cdn CNAME record in the DNS server's cache points to the URL generated by the service, e.g., cl-********.edgecdn.ru.

  3. Try opening the site's URL in the browser, for example:

    http://cdn.example.com/index.html
    

Was the article helpful?

Next
All guides
© 2025 Direct Cursus Technology L.L.C.