Input variables for resource configuration
Describe the input variables for resource configuration. Variables can be conditionally divided into the groups shown in table 1.
Group | Description | Possible types |
|---|---|---|
Special | Variables that allow using data received from the broker. The following variables are supported:
When such variables are declared in the manifest, their values will be obtained by Terraform automatically | string |
External | Variables that allow setting values of tariff options configured in the tariff plan configuration wizard. The variable name must match the name of the tariff option YAML file. Besides declaring such a variable in the manifest, it must also be:
A default value can be set for an external variable. It will be applied if the external value cannot be obtained | number, string, boolean |
Local | Variables used only in the manifest. Set the value in the | Types supported by Terraform |
# Service deployment identifiervariable "instance_uuid" {type = string}# User emailvariable "email" {type = string}
# Name of the virtual network where the VM will be createdvariable "sub_network" {type = stringdefault = "test-net"}# Number of CPUs for the VMvariable "flavor_vcpus" {type = numberdefault = 2}
When describing input variables, you can use locals blocks. With them, you can define variables using computations, including computations based on other declared variables.