Static Site in Yandex Object Storage
A static website in Yandex Object Storage is a turnkey solution for hosting static websites in the Yandex Cloud infrastructure. All required components are configured automatically: S3 bucket for hosting, a Let’s Encrypt® SSL certificate, and DNS records.
The application supports popular static website generators (Hugo and Gatsby) with preconfigured settings and also allows custom configurations for any other tools. All components are set up automatically with minimal access permissions to ensure security.
Template repositories
For the application, the following ready-to-use template repositories are available:
- Hugo: https://sourcecraft.dev/yandex-cloud-examples/cloudapp-hugo
- React: https://sourcecraft.dev/yandex-cloud-examples/cloudapp-react
- Gatsby: https://sourcecraft.dev/yandex-cloud-examples/cloudapp-gatsby
- Vue: https://sourcecraft.dev/yandex-cloud-examples/cloudapp-vue
Benefits
- Rapid deployment: full infrastructure setup in a matter of minutes, without manual configuration.
- Automatic SSL: free Let’s Encrypt® SSL certificate with automatic renewal.
- Popular generator support: preconfigured setups for Hugo and Gatsby.
-
Create a public DNS zone for your domain.
-
Create a service account with the following roles for the folder:
storage.adminlockbox.admincertificate-manager.admindns.admin
-
Create an application:
-
In Marketplace, find Static website in Yandex Object Storage and click Create application.
-
Configure your application:
- Name: Specify a name for the app instance.
- Service account: Select either the service account you created earlier or
Autoto automatically create a service account with the required permissions during app installation. - DNS zone: Select the DNS zone you created earlier.
- Subdomain: Website subdomain. By default, the subdomain is empty. The website domain is formed by adding a subdomain to the DNS zone domain. Optional.
- Website configuration: Select either one of the static website generator types or
Customto specify your own files for the homepage and error page. - Maximum bucket size: Specify the maximum bucket size in GB; it will be created automatically. The default value is 10 GB.
-
Click Install.
-
In the window that opens, confirm resource creation and wait until all resources have been created.
-
-
Locate the automatically created bucket and upload your static website files into it.
-
Verify the website’s availability at
https://<subdomain>.<domain>.Note
The website becomes accessible after the Let’s Encrypt® SSL certificate is issued. To check your certificate status, navigate to Yandex Certificate Manager.
- Personal blogs and developer portfolios.
- Corporate landing pages and business card websites.
- Project and API documentation.
- Static web applications (SPAs).
- Product and service presentation websites.
Yandex Cloud technical support is available 24/7. The types of requests you can submit and the relevant response times depend on your pricing plan. You can switch to the paid support plan in the management console. You can learn more about the technical support terms and conditions here.
| Resource type | Quantity |
|---|---|
| Service account | 1 |
| Service account static access key | 1 |
| Access binding for Object Storage bucket | 1 |
| Object Storage bucket | 1 |
| Access rights for Lockbox secret | 1 |
| Lockbox secret | 1 |
| Lockbox secret version | 1 |
| Access rights for folder | 1 |
| TLS certificate | 1 |
| Cloud DNS resource records | 2 |