Creating a configuration for a Cloud Apps product
Creating a configuration
-
Log in to the Marketplace
partner dashboard. -
Select the product for which you want to create a configuration.
-
Navigate the Configurations tab.
-
Click
Create configuration. -
Select how you want to create your configuration:
From scratchBased on another configurationBased on presetTo create an empty configuration:
- Select a folder to host your configuration. You need the
cloudapps.editorrole for that folder. - Name the configuration.
- Optionally, provide a description for the configuration.
To create a configuration based on an existing one:
- Select the configuration based on which you want to create a new one.
- Select a folder to save your configuration. You need the
cloudapps.editorrole for that folder. - Name the configuration.
- Optionally, provide a description for the configuration.
All artifacts, fields, and resources in the configuration based on which you are creating the new one will be automatically added to the new configuration.
To create a configuration with a predefined set of typical fields and resources:
-
Select the preset based on which you want to create a configuration. A preset is a set of Yandex Cloud services based on your app will operate. The following presets are currently available:
- Network Load Balancer + Instance Groups + Managed Service for PostgreSQL
- Network Load Balancer + Instance Groups + Managed Service for MySQL®
- Network Load Balancer + Instance Groups + Object Storage
- Network Load Balancer + Instance Groups.
-
Select a folder to save your configuration. You need the
cloudapps.editorrole for that folder. -
Name the configuration.
-
Optionally, provide a description for the configuration.
-
Optionally, under Preset parameters, specify default parameter values for the resources that will be created during application (product instance) installation. Make sure the Instance Groups VM disk image meets the requirements.
- Select a folder to host your configuration. You need the
Setting up a configuration
Adding an artifact
Add artifacts: Yandex Compute Cloud disk images, Yandex Container Registry Docker images, and static files used by the application, placed in Yandex Object Storage buckets.
To add an artifact:
- The configuration you created will appear in the list with the
Draftstatus. Select it. - Add the artifacts required for the application to work:
-
Click Add artifact.
-
Select the artifact type:
-
Disk image:Disk images are used to initialize disks of Compute Cloud VM instances, including those in instance groups.
- Name the artifact.
- Select the Yandex Compute Cloud disk image. It must meet these requirements.
- Click Add.
-
Container image:Container images are used to create containerized applications with Yandex Serverless Containers or Yandex Container Solution.
- Name the artifact.
- Select the Docker image uploaded to Yandex Container Registry. It must meet these requirements.
- Click Add.
-
Object Storage:Object Storage buckets are used to store static files of an application version, such as logos, global configuration files, executable code of functions from Yandex Cloud Functions, etc.
- Name the artifact.
- Select the Yandex Object Storage bucket that stores the files required for the application to function correctly.
- Provide the full path to the file, e.g.,
prefix/subprefix/data.json. - Click Add.
-
-
Create a form
Create a form, i.e., a set of fields for the user to fill out before installing the application. You can use the values obtained from the fields both when configuring application resources and during its execution.
If you created a configuration based on another configuration or a preset, the configuration already has form fields. Modify them if required.
To add a field:
-
Navigate to the Parameters tab.
-
Add a field to the form for the user to fill out when installing the application:
- Click Add field.
- Specify the field parameters. For a description of the field parameters, see this section.
Adding resources
Describe the Yandex Cloud resources that the user must create before installing the application and that will be automatically created in the user folder during application deployment.
If you created a configuration based on another configuration or a preset, the configuration already has resources. Modify them if required.
To add a resource:
-
Navigate to the Resources tab.
-
Click Add resource.
-
Select:
New resource, so that a new resource is automatically created in the user folder when installing the application.User resource, so that when installing the application, the user can select a resource from those already existing in their folder or create a new one at their own discretion.
-
Select a resource from those available.
-
In the right pane, select the resource you added. User resources are distinguished from new ones by the
icon. -
Edit the resource name. To do this, click
next to the resource name that was generated automatically. The resource name must be unique within the configuration. The user will see it when installing the application. -
Specify the resource parameters. The possible types of parameter values:
- Value: Static value you specify in the field.
- Application attribute: Value of one of the application attributes, e.g., the ID of the folder in which the user will install the application.
- Reference: Value of one of the parameters pertaining to the resource you added.
- Parameters: Value obtained from a form field the user fills out when installing the application.
- No value: Empty value.
- Resource: Selecting one of the resources you added.
- Expression: Calculated expression allowing you to dynamically generate the field value based on other values, input parameters, and calculations.
For descriptions of the resource parameters, see the Terraform provider documentation. The options available when creating resources and those described in the documentation may differ.
Example of adding a resource
- Select the resource type:
VPC cloud network. - Click
next to theyandex-vpc-network-1cloud network name; this name was generated automatically. Edit the cloud network name. It must be unique within the configuration. The user will see this name when installing the application. - In the ID field, select
Input fieldand select a variable to get the cloud network ID from. The variable name is specified when adding a field to the form. The user specifies the field value when installing the application.
-
Click Save to save the configuration.