Setting up static website hosting in a Yandex Object Storage bucket with Yandex Cloud CDN access
Written by
Updated at November 27, 2025
In this tutorial, you will create a static website in a Yandex Object Storage bucket and publish it as a content origin in Yandex Cloud CDN. The connection between the client and the CDN server can use TLS 1.0 and TLS 1.1; the connection between the CDN server and Object Storage can use TLS 1.2 or higher. The website will be available via the domain name delegated in Yandex Cloud DNS, for which a TLS certificate will be issued in Yandex Certificate Manager. The website domain name will be mapped to the CDN resource using a CNAME record in DNS.
We will use the cdn.yandexcloud.example domain name as an example.
You can create an infrastructure for a static website in a bucket with CDN access using one of these tools:
- Management console, CLI, API: Create your infrastructure step by step from the Yandex Cloud management console, CLI, or API.
- Terraform: Streamline creating and managing your resources using the Infrastructure as Code (IaC) approach. Download a Terraform configuration example from the GitHub repository and then deploy your infrastructure using the Yandex Cloud Terraform provider.