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
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
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

How to get started with Yandex Cloud CDN

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

Use an Object Storage bucket to demonstrate how to set up content delivery over a CDN:

  1. Create a CDN resource.
  2. Upload your content to the CDN.
  3. Set up 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 typically your domain registrar.

  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. Navigate to the folder dashboard 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 an Object Storage bucket yet:

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

Create a CDN resourceCreate a CDN resource

  1. Navigate to the folder dashboard 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 your Object Storage bucket.

    • Domain names for content distribution: Specify the primary domain name you will use in your website links to CDN-hosted content, 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, omitting the schema (http or https). Here is an example:

        my-bucket.storage.yandexcloud.net
        

        Alert

        If the Host header is misconfigured, Object Storage will return errors in response to CDN server requests.

  4. Click Create.

Upload your content to the CDNUpload your content to the CDN

Tip

We recommend preloading large content to the CDN, e.g., files larger than 200 MB. This is an optional step. If skipped, the CDN will load the content automatically when a user tries to access it for the first time.

To preload content to CDN servers:

  1. Navigate 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. See an example below:

    /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 the generated URL in the .edgecdn.ru domain.

  2. Navigate to your domain DNS settings on the website of your DNS hosting provider.

  3. Edit the relevant CNAME record so that it points to the previously copied URL in 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 use it to replace the current 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 for the DNS records to update. This may take several hours.

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

  3. Open the website in your browser to make sure it is working. Here is an example:

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

Was the article helpful?

Next
All guides
Yandex project
© 2025 Yandex.Cloud LLC