Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Tutorials
    • All tutorials
      • Deploying a web application using the Java Servlet API
      • Developing a custom integration in API Gateway
      • Developing CRUD APIs for a movie service
      • Creating an interactive serverless application using WebSocket
      • Working with an API gateway via WebSocket
      • Creating a Node.js function using TypeScript
      • Running a containerized app in Serverless Containers
      • Connecting to YDB from a Cloud Functions Python function
      • Connecting to a YDB database from a Node.js function in Cloud Functions
      • Setting up a Yandex Managed Service for PostgreSQL connection from Serverless Containers
      • Deploying a web app with JWT authorization in API Gateway and Firebase authentication
      • Developing functions in Functions Framework and deploying them to Yandex Serverless Containers
      • Canary release of a Cloud Functions function
      • Interactive debugging of functions in Cloud Functions
      • Creating a Yandex Cloud Postbox address and verifying domain ownership with Terraform
      • Configuring Postfix to send emails via Yandex Cloud Postbox
      • Web application on SourceCraft Sites and Yandex Cloud Functions

In this article:

  • Getting started
  • Required paid resources
  • Testing the application
  • Deleting Yandex Cloud resources
  • Unpublishing a website
  • Useful links
  1. Serverless technologies
  2. Serverless-based backend
  3. Web application on SourceCraft Sites and Yandex Cloud Functions

Web application on SourceCraft Sites and Yandex Cloud Functions

Written by
Yandex Cloud
Updated at November 9, 2026
View in Markdown
  • Getting started
    • Required paid resources
  • Testing the application
  • Deleting Yandex Cloud resources
  • Unpublishing a website
  • Useful links

This guide demonstrates an example of deploying a simple web application using various services and tools:

  • Frontend: Static website on SourceCraft Sites.
  • Backend: Yandex Cloud Functions cloud function combined with a Yandex API Gateway gateway.
  • Storing and working with code: SourceCraft repository.
  • Creating Yandex Cloud resources: SourceCraft CI/CD and SourceCraft service connections to Yandex Cloud.

This web application is suitable for development and prototyping, or for a pet project. Advantages of this approach:

  • There is no need to set up a virtual machine or a server for either the frontend or the backend.
  • Free hosting on SourceCraft Sites with HTTPS access (no need to upload your own TLS certificate).
  • The free tier for Yandex Cloud Functions and Yandex API Gateway allows you to use them at no cost under light workloads.
  • Free access to SourceCraft features for working with code and CI/CD under the SourceCraft Free pricing plan.

Note

A web application (website) is published based on files hosted in a public repository belonging to a public SourceCraft organization.

You can confirm ownership of a SourceCraft Sites website in Yandex Webmaster. For more information, see Questions about SourceCraft.

To create a web app:

  1. Get ready to work.
  2. Clone (git clone https://git@git.sourcecraft.dev/examples/sourcecraft-sites-web-app.git) or fork the repository into your organization on SourceCraft.
  3. Create a service connection named default-service-connection.
  4. Manually run the create-resources workflow on the master branch.
  5. Test your application.

If you no longer need the resources you have created, delete them and unpublish the website.

Getting startedGetting started

  1. Sign up for Yandex Cloud and create a billing account:

    1. Navigate to the management console and log in to Yandex Cloud or create 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 create or select a folder for your infrastructure on the cloud page.

    Learn more about clouds and folders here.

  2. Authenticate in SourceCraft on the service home page or sign up.

Required paid resourcesRequired paid resources

The cost of web application infrastructure support includes:

  • Cost of using the gateway (see Yandex API Gateway pricing).
  • Cost of using a cloud function (Yandex Cloud Functions pricing).

Testing the applicationTesting the application

To open the application, navigate to the following URL in your browser: https://<organization_slug>.sourcecraft.site/<repository_name>. If everything was set up correctly, you will see an input field for a name and a button on the page that opens. Enter a name and click the button; a greeting line should then appear below.

Deleting Yandex Cloud resourcesDeleting Yandex Cloud resources

You can delete the resources (the gateway and the cloud function) using one of the following methods:

  • Manually in the Yandex Cloud console (delete the function, delete the API gateway).
  • Manually run the delete-resources workflow in the repository.

Unpublishing a websiteUnpublishing a website

To unpublish a website, simply perform one of the following actions:

  • Making a repository or organization private.
  • Removing the .sourcecraft/sites.yaml file from the repository's main branch.

Useful linksUseful links

Connecting to a Managed Service for YDB database from a Python function in Yandex Cloud Functions

Was the article helpful?

Previous
Configuring Postfix to send emails via Yandex Cloud Postbox
Next
Overview
© 2026 Direct Cursus Technology L.L.C.