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 Object Storage
    • All tutorials
    • Getting statistics on object queries with S3 Select
    • Getting website traffic statistics with S3 Select
    • Getting statistics on object queries using Yandex Query
    • Generating a resource-by-resource cost breakdown report using S3 Select
    • Server-side encryption
    • Integrating an L7 load balancer with CDN and Object Storage
    • Blue-green and canary deployment of service versions
    • Analyzing logs in DataLens
    • Mounting buckets to the file system of Yandex Data Processing hosts
    • Using Object Storage in Yandex Data Processing
    • Importing data from Object Storage, processing and exporting to Managed Service for ClickHouse®
    • Mounting a bucket as a disk in Windows
    • Migrating data from Yandex Data Streams using Yandex Data Transfer
    • Using hybrid storage in Yandex Managed Service for ClickHouse®
    • Loading data from Yandex Managed Service for OpenSearch to Yandex Object Storage using Yandex Data Transfer
    • Automatically copying objects from one bucket to another
    • Recognizing audio files in a bucket on a regular basis
    • Training a model in Yandex DataSphere on data from Object Storage
    • Connecting to Object Storage from VPC
    • Migrating data to Yandex Managed Service for PostgreSQL using Yandex Data Transfer
    • Uploading data to Yandex Managed Service for Greenplum® using Yandex Data Transfer
    • Uploading data to Yandex Managed Service for ClickHouse® using Yandex Data Transfer
    • Uploading data to Yandex Managed Service for YDB using Yandex Data Transfer
    • Exchanging data between Yandex Managed Service for ClickHouse® and Yandex Data Processing
    • Uploading data from Yandex Managed Service for YDB using Yandex Data Transfer
    • Hosting a static Gatsby website in Object Storage
    • Migrating a database from Managed Service for PostgreSQL to Object Storage
    • Exchanging data between Yandex Managed Service for ClickHouse® and Yandex Data Processing
    • Importing data from Yandex Managed Service for PostgreSQL to Yandex Data Processing using Sqoop
    • Importing data from Yandex Managed Service for MySQL® to Yandex Data Processing using Sqoop
    • Migrating data from Yandex Object Storage to Yandex Managed Service for MySQL® using Yandex Data Transfer
    • Migrating a database from Yandex Managed Service for MySQL® to Yandex Object Storage
    • Exporting Greenplum® data to a cold storage in Yandex Object Storage
    • Loading data from Yandex Direct to a Yandex Managed Service for ClickHouse® data mart using Yandex Cloud Functions, Yandex Object Storage, and Yandex Data Transfer
    • Migrating data from Elasticsearch to Yandex Managed Service for OpenSearch
    • Uploading Terraform states to Object Storage
    • Locking Terraform states using Managed Service for YDB
      • Overview
      • Management console
      • Terraform
    • Visualizing Yandex Query data
    • Publishing game updates
    • VM backups using Hystax Acura
    • Backing up to Object Storage with CloudBerry Desktop Backup
    • Backing up to Object Storage with Duplicati
    • Backing up to Object Storage with Bacula
    • Backing up to Yandex Object Storage with Veeam Backup
    • Backing up to Object Storage with Veritas Backup Exec
    • Managed Service for Kubernetes cluster backups in Object Storage
    • Developing a custom integration in API Gateway
    • URL shortener
    • Storing application runtime logs
    • Developing a skill for Alice and a website with authorization
    • Creating an interactive serverless application using WebSocket
    • Deploying a web application using the Java Servlet API
    • Developing a Telegram bot
    • Replicating logs to Object Storage using Fluent Bit
    • Replicating logs to Object Storage using Data Streams
    • Uploading audit logs to ArcSight SIEM
    • Exporting audit logs to SIEM Splunk systems
    • Creating an MLFlow server for logging experiments and artifacts
    • Operations with data using Yandex Query
    • Federated data queries using Query
    • Recognizing text in image archives using Vision OCR
    • Converting a video to a GIF in Python
    • Automating tasks using Managed Service for Apache Airflow™
    • Processing files with usage details in Yandex Cloud Billing
    • Deploying a web app with JWT authorization in API Gateway and authentication in Firebase
    • Searching for Yandex Cloud events in Yandex Query
    • Searching for Yandex Cloud events in Object Storage
    • Creating an external table from a bucket table using a configuration file
    • Migrating databases from Google BigQuery to Managed Service for ClickHouse®
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Bucket logs
  • Release notes
  • FAQ

In this article:

  • Get your cloud ready
  • Required paid resources
  • Create a public bucket
  • Enable a website for a bucket
  • Configure DNS
  • Add a zone
  • Add an ANAME resource record
  • Delegate the domain name
  • Upload the website files
  • Test the website
  • How to delete the resources you created
  1. Tutorials
  2. Static website in Yandex Object Storage
  3. Management console

Static website in Yandex Object Storage using the management console

Written by
Yandex Cloud
Updated at May 14, 2025
  • Get your cloud ready
    • Required paid resources
  • Create a public bucket
  • Enable a website for a bucket
  • Configure DNS
    • Add a zone
    • Add an ANAME resource record
    • Delegate the domain name
  • Upload the website files
  • Test the website
  • How to delete the resources you created

To host a static website in Object Storage using the Yandex Cloud management console:

  1. Get your cloud ready.
  2. Create a public bucket.
  3. Enable a website for a bucket.
  4. Configure DNS.
  5. Upload the website files.
  6. Test the website.

If you no longer need the resources you created, delete them.

Get your cloud readyGet your cloud ready

Sign up in Yandex Cloud and create a billing account:

  1. Navigate to the management console and log in to Yandex Cloud or register a new account.
  2. On the Yandex Cloud Billing page, make sure you have a billing account linked and it has the ACTIVE or TRIAL_ACTIVE status. If you do not have a billing account, create one and link a cloud to it.

If you have an active billing account, you can navigate to the cloud page to create or select a folder for your infrastructure to operate in.

Learn more about clouds and folders.

Required paid resourcesRequired paid resources

The cost of hosting a static website includes:

  • Fee for storing data for a static website (see Object Storage pricing).
  • Fee for data operations (see Object Storage pricing).
  • Fee for outgoing traffic from Yandex Cloud to the internet (see Object Storage pricing).
  • Fee for public DNS queries and zones (see Yandex Cloud DNS pricing).

Create a public bucketCreate a public bucket

To create a bucket for static website files:

Management console
  1. In the Yandex Cloud management console, select a folder to create a bucket in.

  2. On the folder page, click Create resource and select Bucket.

  3. In the Name field, specify the bucket name. Once configured, the bucket will be available at two addresses:

    • http(s)://<bucket_name>.website.yandexcloud.net
    • http(s)://website.yandexcloud.net/<bucket_name>

    The name must meet the following requirements:

    • The name must be from 3 to 63 characters long.
    • The name may contain lowercase Latin letters, numbers, hyphens, and periods.
    • The first and last characters must be letters or numbers.
    • The characters to the right and left of the period must be letters or numbers.
    • The name must not look like an IP address, e.g., 10.1.3.9.

    If you have a registered domain name (e.g., example.com) and want your website to be accessible at example.com, specify example.com as the bucket name.

    Note

    If you plan to use your own domain for the website, the bucket name must be an exact match of your domain name. Use a second-level domain or higher. For more information, see Custom domain.

  4. In the Object read access field, specify Public.

  5. Click Create bucket.

Enable a website for a bucketEnable a website for a bucket

  1. Upload and configure the home page and error handling page for your intended website. To do this, create the following files on your computer:

    • index.html containing the text Hello world!. The file contents will be displayed on the website's home page.
    • error.html containing the text Error!. The file contents will be displayed when the website responds with 4xx errors.
  2. Upload the files you created to the bucket:

    Management console
    1. In the management console, select the folder where the bucket is located.

    2. From the list of services, select Object Storage. In the window that opens, select the bucket created earlier.

    3. In the left-hand panel, select Objects.

    4. Click Upload. In the window that opens, select the files you created and confirm the upload.

    5. In the left-hand panel, select Settings.

    6. On the Website tab:

      1. Navigate to the Website tab and select Hosting.
      2. In the Home page field, specify index.html.
      3. In the Error page field, specify error.html.
      4. Click Save.
  3. Make sure your website's home page opens. To do this, access the website from a browser at http://<bucket_name>.website.yandexcloud.net.

  4. Make sure the error page opens. To do this, access the website from a browser at http://<bucket_name>.website.yandexcloud.net/error-check.

By default, the website is only accessible over HTTP, e.g., at http://example.com.website.yandexcloud.net. To provide HTTPS support for your website:

  1. Add your own security certificate or a Let's Encrypt certificate in Yandex Certificate Manager.

  2. Configure HTTPS support for your bucket. Your website will then be accessible over HTTPS at https://example.com.website.yandexcloud.net.

    Note

    If you use such URLs as http(s)://<bucket_name>.storage.yandexcloud.net, the HTTPS protocol is available for the bucket only if the bucket name does not contain dots, e.g.:

    • https://example.storage.yandexcloud.net: HTTPS is available for this bucket.
    • http://example.ru.storage.yandexcloud.net: HTTPS is not available for this bucket.

    This is because Object Storage uses Wildcard certificates that only support one level of subdomains.

    To provide HTTPS support for a bucket with a dot in the name, upload your own security certificate to Object Storage.

  3. For access by the short domain name (example.com), configure DNS.

Configure DNSConfigure DNS

If you have a registered domain name, assign it to the bucket. To do this, create an ANAME DNS record.

You can use Cloud DNS to manage the domain.

Note

The bucket name must be an exact match of your domain name. Use a second-level domain or higher. For more information, see Custom domain.

The tutorial below describes how to set up DNS for an example.com second-level domain.

Add a zoneAdd a zone

To create a public DNS zone:

Management console
  1. In the management console, select the folder where you want to create a public zone.

  2. From the list of services, select Cloud DNS.

  3. Click Create zone. In the window that opens, specify the DNS zone settings:

    • Zone: Specify your registered domain name, e.g., example.com.. The field value must end with a trailing dot.
    • Type: Public.
    • Name: example-zone-1.
  4. Click Create.

Add an ANAME resource recordAdd an ANAME resource record

Create an ANAME resource record in the public DNS zone:

Management console
  1. In the management console, select the folder that houses the public DNS zone.

  2. From the list of services, select Cloud DNS and then, the DNS zone you created earlier.

  3. Click Create record. In the window that opens, set the record properties:

    • In the Name field, select Matches zone name (@).
    • In the Type field, select ANAME.
    • In the Data field, specify the resource record value, e.g., example.com.website.yandexcloud.net, where example.com is the name of the public bucket you created earlier.
  4. Click Create.

The domain name in the ANAME record must match the bucket name. For example, if you are creating an ANAME record named example.com, your bucket name should also be example.com.

Delegate the domain nameDelegate the domain name

Delegation is the transfer of authority from the registrar's servers to yours. For a domain, NS resource records (ns1.yandexcloud.net and ns2.yandexcloud.net) are created.

To delegate a domain, specify its DNS servers in the registrar's account.

Delegation does not take effect immediately. It usually takes up to 24 hours (86,400 seconds) for internet service providers to update records. This depends on the TTL value, which specifies how long domain records are cached.

You can check domain delegation using Whois or the dig utility:

dig +short NS example.com

Result:

ns2.yandexcloud.net.
ns1.yandexcloud.net.

Upload the website filesUpload the website files

After you configure and test availability, upload the remaining files required for website operation. To do this, use the management console, S3 API, Terraform, or other tools for operating Object Storage.

Test the websiteTest the website

To check that the website is running, use one of the standard Object Storage addresses:

  • http://<bucket_name>.website.yandexcloud.net
  • http://website.yandexcloud.net/<bucket_name>

If you have configured your own domain for a website, use its address, e.g., example.com.

How to delete the resources you createdHow to delete the resources you created

To stop paying for the resources:

  1. Delete the files you uploaded.
  2. Delete the bucket.
  3. Delete the DNS zone.

See alsoSee also

  • Static website in Yandex Object Storage using Terraform

Was the article helpful?

Previous
Overview
Next
Terraform
Yandex project
© 2025 Yandex.Cloud LLC