Updated on 2023-12-20 GMT+08:00

Resources and Costs

The table below describes the resources that you need in this practice.

Table 1 Resource and cost description

Resource

Description

Cost

OBS

An OBS bucket must be created for hosting static website files, and the bucket must have the static website hosting configured and a user-defined domain name bound.

Fees charged for using OBS:

  • Storage fee generated for storing static website files in OBS
  • Request fee generated when users access static website files stored in OBS
  • Traffic fee generated when users use a user-defined domain name to access OBS over the Internet

Actual fees vary depending on the size of stored files, the number of requests, and the traffic volume.

Static website files

  • Static website homepage:

    Index page (homepage) that is returned when the hosted static website is accessed.

    Example: index.html

  • 404 error page:

    Page that is returned when the accessed static website path is incorrect.

    Example: error.html

Free

User-defined domain name

The user's domain name that needs to be bound to the OBS bucket.

As required by the MIIT, the user must complete the ICP filing, if the bucket to which the user-defined domain name is bound is in any of the following regions:

CN North-Beijing1, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, and CN South-Guangzhou

Example: www.example.com

Domain name registration fees charged by the registrar

DNS

A CNAME record must be configured on DNS for the domain name bound to the bucket.

Free

In this example, the static website files are as follows:

  • Content in the index.html file
    <html>
      <head>
          <title>Hello OBS!</title>
          <meta charset="utf-8">
      </head>
      <body>
          <p>Welcome to OBS static website hosting.</p>
          <p>This is the homepage.</p>
      </body>
    </html>
  • Content in the error.html file
    <html>
      <head>
          <title>Hello OBS!</title>
          <meta charset="utf-8">
      </head>
      <body>
          <p>Welcome to OBS static website hosting.</p>
          <p> This is the 404 error page.</p>
      </body>
    </html>