Creating a connection
You can create connections of the following types:
Connecting to a cluster with a managed database
Managed Service for PostgreSQL
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- Select Connection type.
- Under Connection to PostgreSQL, select Managed Service for PostgreSQL cluster as the connection type and specify the cluster you need.
- Under Authentication:
- Specify the Username you will use to connect to the cluster.
- Select the password setting method:
- Enter manually: You set the password manually.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
- Optionally, list the databases whose connections you want to manage. You can connect only to the databases that exist in the cluster. You must have access to them configured.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a Managed Service for PostgreSQL cluster, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create postgresql --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create postgresql \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --managed-cluster-id <cluster_ID> \ --databases <database_list>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: Username to connect to the cluster. -
--password: Password. -
--managed-cluster-id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
--databases: Comma-separated list of databases. Make sure the user has the required access permissions.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a Managed Service for PostgreSQL cluster, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { postgresql = { managed_cluster_id = "<cluster_ID>" databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.postgresql: Parameters for connecting to the Managed Service for PostgreSQL cluster:-
managed_cluster_id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: Username to connect to the cluster. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Managed Service for PostgreSQL cluster, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method on the Connection resource.
For more information about the available request parameters, see the REST API and gRPC API reference.
Managed Service for ClickHouse®
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- Select Connection type.
- Under Connection to ClickHouse®, select Managed Service for ClickHouse® cluster as the connection type and specify the cluster you need.
- Under Authentication:
- Specify the Username you will use to connect to the cluster.
- Select the password setting method:
- Enter manually: You set the password manually.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
- Optionally, list the databases whose connections you want to manage. You must have access to them configured.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a Managed Service for ClickHouse® cluster, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create clickhouse --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create clickhouse \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --managed-cluster-id <cluster_ID> \ --databases <database_list>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: Username to connect to the cluster. -
--password: Password. -
--managed-cluster-id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
--databases: Comma-separated list of databases. Make sure the user has the required access permissions.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a Managed Service for ClickHouse® cluster, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { clickhouse = { managed_cluster_id = "<cluster_ID>" databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.clickhouse: Parameters for connecting to the Managed Service for ClickHouse® cluster:-
managed_cluster_id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: Username to connect to the cluster. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Managed Service for ClickHouse® cluster, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
Managed Service for MySQL®
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- Select Connection type.
- Under Connection to MySQL®, select Managed Service for MySQL® cluster as the connection type and specify the cluster you need.
- Under Authentication:
- Specify the Username you will use to connect to the cluster.
- Select the password setting method:
- Enter manually: You set the password manually.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
- Optionally, list the databases whose connections you want to manage. You can connect only to the databases that exist in the cluster. You must have access to them configured.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a Managed Service for MySQL® cluster, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create mysql --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create mysql \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --managed-cluster-id <cluster_ID> \ --databases <database_list>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: Username to connect to the cluster. -
--password: Password. -
--managed-cluster-id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
--databases: Comma-separated list of databases. Make sure the user has the required access permissions.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a Managed Service for MySQL® cluster, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { mysql = { managed_cluster_id = "<cluster_ID>" databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.mysql: Parameters for connecting to the Managed Service for MySQL® cluster:-
managed_cluster_id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: Username to connect to the cluster. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Managed Service for MySQL® cluster, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
Yandex Managed Service for Valkey™
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- From the Connection type list, select Valkey™.
- Under Connection to Valkey™, select Yandex Managed Service for Valkey™ cluster as the connection type and specify the cluster you need.
- Under Authentication, select how to set the password:
- Enter manually: Enter the password manually.
- Generate: Specify the options to generate a Lockbox password automatically.
- Optionally, list the databases whose connections you want to manage. You must have access to them configured.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a Yandex Managed Service for Valkey™ cluster, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create valkey --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create valkey \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --managed-cluster-id <cluster_ID> \ --databases <database_list>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: Username to connect to the cluster. -
--password: Password. -
--managed-cluster-id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
--databases: Comma-separated list of databases. Make sure the user has the required access permissions.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a Yandex Managed Service for Valkey™ cluster, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { valkey = { managed_cluster_id = "<cluster_ID>" databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.valkey: Parameters for connecting to the Yandex Managed Service for Valkey™ cluster:-
managed_cluster_id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: Username to connect to the cluster. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Yandex Managed Service for Valkey™ cluster, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
Managed Service for OpenSearch
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- Select Connection type.
- Under Connection to OpenSearch, select Managed Service for OpenSearch cluster as the connection type and specify the cluster you need.
- Under Authentication:
- Specify the Username you will use to connect to the cluster.
- Select the password setting method:
- Enter manually: You set the password manually.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
- Optionally, list the databases whose connections you want to manage. You can connect only to the databases that exist in the cluster. You must have access to them configured.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a Managed Service for OpenSearch cluster, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create opensearch --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create opensearch \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --managed-cluster-id <cluster_ID>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: Username to connect to the cluster. -
--password: Password. -
--managed-cluster-id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a Managed Service for OpenSearch cluster, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { opensearch = { managed_cluster_id = "<cluster_ID>" auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.opensearch: Parameters for connecting to the Managed Service for OpenSearch cluster:-
managed_cluster_id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
auth.user_password.user: Username to connect to the cluster. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Managed Service for OpenSearch cluster, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
Yandex StoreDoc
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- Select Connection type.
- Under Connection to MongoDB, select Yandex StoreDoc cluster as the connection type and specify the cluster you need.
- Under Authentication:
- Specify the Username you will use to connect to the cluster.
- Select the password setting method:
- Enter manually: You set the password manually.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
- Optionally, list the databases whose connections you want to manage. You can connect only to the databases that exist in the cluster. You must have access to them configured.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a Yandex StoreDoc cluster, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create mongodb --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create mongodb \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --managed-cluster-id <cluster_ID> \ --databases <database_list>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: Username to connect to the cluster. -
--password: Password. -
--managed-cluster-id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
--databases: Comma-separated list of databases. Make sure the user has the required access permissions.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a Yandex StoreDoc cluster, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { mongodb = { managed_cluster_id = "<cluster_ID>" databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.mongodb: Parameters for connecting to the Yandex StoreDoc cluster:-
managed_cluster_id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: Username to connect to the cluster. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Yandex StoreDoc cluster, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
Managed Service for Apache Kafka®
-
In the management console
, select the folder you want to create a connection in. -
Select Yandex MetaData Hub.
-
In the left-hand panel, select
Connection manager. -
Click Create connection.
-
Specify the connection name.
-
Optionally, add a description and label for the connection.
-
Select Connection type.
-
Under Connection to Apache Kafka®, select Managed Service for Kafka cluster as the connection type and specify the cluster you need.
-
When using authentication:
-
Specify the Username for the connection.
-
Set a password in one of the following ways:
- Enter manually: Enter the password in the input field.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
-
Optionally, in the Authentication mechanisms list, select the required options:
PLAIN: Authentication with login and password provided as plain unencrypted text.SCRAM_SHA256: Authentication with SHA-256 hashing.SCRAM_SHA512: Authentication with SHA-512 hashing.
-
-
Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a Managed Service for Apache Kafka® cluster, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create kafka --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create kafka \ --name <connection_name> \ --description "<connection_description>" \ --supported-mechanisms <list_of_authentication_mechanisms> \ --labels <label_list> \ --user <username> \ --password <password> \ --managed-cluster-id <cluster_ID>Where:
-
--name: Connection name. -
--description: Connection description. -
--supported-mechanisms: List of authentication mechanisms. The possible values are:PLAIN: Authentication with login and password provided as plain unencrypted text.SCRAM_SHA256: Authentication with SHA-256 hashing.SCRAM_SHA512: Authentication with SHA-512 hashing.
-
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: Username to connect to the cluster. -
--password: Password. -
--managed-cluster-id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a Managed Service for Apache Kafka® cluster, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { kafka = { managed_cluster_id = "<cluster_ID>" auth = { sasl = { user = "<username>" password = { raw = "<password>" } supported_mechanisms = [ <list_of_authentication_mechanisms> ] } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.kafka: Parameters for connecting to the Managed Service for Apache Kafka® cluster:-
managed_cluster_id: Cluster ID.You can get the cluster ID from the folder’s cluster list.
-
auth: Authentication parameters. Select one of the sections:-
sasl: SASL authentication parameters.-
user: Username to connect to the cluster. -
password.raw: Password. -
supported_mechanisms: List of authentication mechanisms. The possible values are:PLAIN: Authentication with login and password provided as plain unencrypted text.SCRAM_SHA256: Authentication with SHA-256 hashing.SCRAM_SHA512: Authentication with SHA-512 hashing.
-
-
disabled: Disables authentication.
-
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Managed Service for Apache Kafka® cluster, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method on the Connection resource.
For more information about the available request parameters, see the REST API and gRPC API reference.
Yandex MPP Analytics for PostgreSQL
-
In the management console
, select the folder you want to create a connection in. -
Select Yandex MetaData Hub.
-
In the left-hand panel, select
Connection manager. -
Click Create connection.
-
Specify the connection name.
-
Optionally, add a description and label for the connection.
-
Select Connection type.
-
Under Connection to Greenplum, select Yandex MPP Analytics for PostgreSQL cluster as the connection type and specify the cluster you need.
-
Under Authentication:
- Specify the Username for the connection.
- Select the password setting method:
- Enter manually: Enter the password in the input field.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
-
List the databases whose connections you want to manage. You can connect only to the databases that exist in the cluster. Make sure the user has the required access permissions.
-
Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a Yandex MPP Analytics for PostgreSQL cluster, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create greenplum --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create greenplum \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --managed-cluster-id <cluster_ID> \ --databases <database_list>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: Username to connect to the cluster. -
--password: Password. -
--managed-cluster-id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
--databases: Comma-separated list of databases. Make sure the user has the required access permissions.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a Yandex MPP Analytics for PostgreSQL cluster, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { greenplum = { managed_cluster_id = "<cluster_ID>" databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.greenplum: Parameters for connecting to the Yandex MPP Analytics for PostgreSQL cluster:-
managed_cluster_id: Cluster ID.You can get the cluster ID with the list of clusters in the folder.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: Username to connect to the cluster. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Yandex MPP Analytics for PostgreSQL cluster, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method on the Connection resource.
For more information about the available request parameters, see the REST API and gRPC API reference.
Connecting to a custom database installation
PostgreSQL
-
In the management console
, select the folder you want to create a connection in. -
Select Yandex MetaData Hub.
-
In the left-hand panel, select
Connection manager. -
Click Create connection.
-
Specify the connection name.
-
Optionally, add a description and label for the connection.
-
Select Connection type.
-
Under Connection to PostgreSQL, specify the connection parameters:
-
In the Connection type field, select Custom installation.
-
In the Hosts field, specify the database host address and port number for the connection.
When creating a connection to a custom database installation intended for Yandex DataLens, specify the host's external address.
-
Optionally, enable TLS.
If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.
-
-
Under Authentication:
- Specify the Username you will use to connect to the database.
- Select the password setting method:
- Enter manually: You set the password manually.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
-
Optionally, list the databases whose connections you want to manage. You must have access to them configured.
-
Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a custom PostgreSQL installation, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create postgresql --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create postgresql \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --hosts <list_of_hosts> \ --databases <database_list> \ --ca-certificate <path_to_certificate>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: User name for connection to the database. -
--password: Password. -
--hosts: Comma-separated list of hosts in<host>:<port>format. -
--databases: Comma-separated list of databases.Make sure the user has the required access permissions.
-
--ca-certificate: Path to your TLS CA certificate file.TLS is enabled by default; to disable it, use the
--tls-disabledflag.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a custom PostgreSQL installation, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { postgresql = { cluster = { hosts = [ { host = "<host_1>" port = <port_1> }, { host = "<host_2>" port = <port_2> }, ... { host = "<host_N>" port = <port_N> } ] tls_params = { tls { ca_certificate = "<path_to_certificate>" } } } databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.postgresql: Parameters for connecting to the custom PostgreSQL installation.-
cluster.hosts: Host list. For each host, specifyhostandport. -
cluster.tls_params: TLS parameters. Select one of the sections:tls.ca_certificate: Path to your TLS CA certificate file.disabled: Disables TLS. TLS is enabled by default.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: User name for connection to the database. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a PostgreSQL custom installation, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
ClickHouse®
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- Select Connection type.
- Under Connection to ClickHouse®, specify the connection parameters:
-
In the Connection type field, select Custom installation.
-
In the Hosts field, specify the FQDNs or IP addresses of the hosts in the shard, HTTP or TCP port for connection, and the shard name.
When creating a connection to a custom database installation intended for Yandex DataLens, specify the hosts’ external IP addresses.
-
Optionally, enable TLS.
If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.
-
- Under Authentication:
- Specify the Username you will use to connect to the database.
- Select the password setting method:
- Enter manually: You set the password manually.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
- Optionally, list the databases whose connections you want to manage. You must have access to them configured.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a custom ClickHouse® installation, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create clickhouse --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create clickhouse \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --hosts <list_of_hosts> \ --databases <database_list> \ --ca-certificate <path_to_certificate>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: User name for connection to the database. -
--password: Password. -
--hosts: Comma-separated list of hosts in<host>:<http_port>:<tcp_port>:<shard_name>format. -
--databases: Comma-separated list of databases.Make sure the user has the required access permissions.
-
--ca-certificate: Path to your TLS CA certificate file.TLS is enabled by default; to disable it, use the
--tls-disabledflag.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a custom ClickHouse® installation, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { clickhouse = { cluster = { hosts = [ { host = "<host_1>" http_port = <http_port_1> shard_name = "<shard_1_name>" tcp_port = <tcp_port_2> }, { host = "<host_2>" http_port = <http_port_2> shard_name = "<shard_2_name>" tcp_port = <tcp_port_2> }, ... { host = "<host_N>" http_port = <http_port_N> shard_name = "<shard_N_name>" tcp_port = <tcp_port_N> } ] tls_params = { tls { ca_certificate = "<path_to_certificate>" } } } databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.clickhouse: Parameters for connecting to the custom ClickHouse® installation:-
cluster.hosts: Host list. For each host, specifyhost,http_port,shard_name, andtcp_port. -
cluster.tls_params: TLS parameters. Select one of the sections:tls.ca_certificate: Path to your TLS CA certificate file.disabled: Disables TLS. TLS is enabled by default.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: User name for connection to the database. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a ClickHouse® custom installation, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
MySQL®
-
In the management console
, select the folder you want to create a connection in. -
Select Yandex MetaData Hub.
-
In the left-hand panel, select
Connection manager. -
Click Create connection.
-
Specify the connection name.
-
Optionally, add a description and label for the connection.
-
Select Connection type.
-
Under Connection to MySQL®, specify the connection parameters:
-
In the Connection type field, select Custom installation.
-
In the Hosts field, specify the database host address and port number for the connection.
When creating a connection to a custom database installation intended for Yandex DataLens, specify the host's external address.
-
Optionally, enable TLS.
If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.
-
-
Under Authentication:
- Specify the Username you will use to connect to the database.
- Select the password setting method:
- Enter manually: You set the password manually.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
-
Optionally, list the databases whose connections you want to manage. You must have access to them configured.
-
Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a custom MySQL® installation, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create mysql --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create mysql \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --hosts <list_of_hosts> \ --databases <database_list> \ --ca-certificate <path_to_certificate>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: User name for connection to the database. -
--password: Password. -
--hosts: Comma-separated list of hosts in<host>:<port>format. -
--databases: Comma-separated list of databases.Make sure the user has the required access permissions.
-
--ca-certificate: Path to your TLS CA certificate file.TLS is enabled by default; to disable it, use the
--tls-disabledflag.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a custom MySQL® installation, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { mysql = { cluster = { hosts = [ { host = "<host_1>" port = <port_1> }, { host = "<host_2>" port = <port_2> }, ... { host = "<host_N>" port = <port_N> } ] tls_params = { tls { ca_certificate = "<path_to_certificate>" } } } databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.mysql: Parameters for connecting to the custom MySQL® installation:-
cluster.hosts: Host list. For each host, specifyhostandport. -
cluster.tls_params: TLS parameters. Select one of the sections:tls.ca_certificate: Path to your TLS CA certificate file.disabled: Disables TLS. TLS is enabled by default.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: User name for connection to the database. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a MySQL® custom installation, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
Valkey™
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- From the Connection type list, select Valkey™.
- Under Connection to Valkey™, specify the connection parameters:
- In the Connection type field, select Custom installation.
- In the Hosts field, specify the FQDNs or IP addresses of the hosts in the shard, HTTP or TCP port for connection, and the shard name.
- Optionally, enable TLS.
- Under Authentication, specify a username and select how you want to set the password:
- Enter manually: Enter the password manually.
- Generate: Specify the options to generate a Lockbox password automatically.
- Optionally, list the databases whose connections you want to manage. You must have access to them configured.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a custom Valkey™ installation, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create redis --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create redis \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --hosts <list_of_hosts> \ --databases <database_list> \ --ca-certificate <path_to_certificate>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: User name for connection to the database. -
--password: Password. -
--hosts: Comma-separated list of hosts in<host>:<port>:<shard_name>format. -
--databases: Comma-separated list of databases.Make sure the user has the required access permissions.
-
--ca-certificate: Path to your TLS CA certificate file.TLS is enabled by default; to disable it, use the
--tls-disabledflag.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a custom Valkey™ installation, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { redis = { cluster = { hosts = [ { host = "<host_1>" port = <port_1> shard_name = "<shard_1_name>" }, { host = "<host_2>" port = <port_2> shard_name = "<shard_2_name>" }, ... { host = "<host_N>" port = <port_N> shard_name = "<shard_N_name>" } ] tls_params = { tls { ca_certificate = "<path_to_certificate>" } } } databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.redis: Parameters for connecting to the custom Valkey™ installation:-
cluster.hosts: Host list. For each host, specifyhost,port, andshard_name. -
cluster.tls_params: TLS parameters. Select one of the sections:tls.ca_certificate: Path to your TLS CA certificate file.disabled: Disables TLS. TLS is enabled by default.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: User name for connection to the database. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Valkey™ custom installation, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
Valkey™
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- From the Connection type list, select Valkey™.
- Under Connection to Valkey™, specify the connection parameters:
-
In the Connection type field, select Custom installation.
-
In the Hosts field, specify the FQDNs or IP addresses of the hosts in the shard, HTTP or TCP port for connection, and the shard name.
When creating a connection to a custom database installation intended for Yandex DataLens, specify the hosts’ external IP addresses.
-
Optionally, enable TLS.
-
- Under Authentication, specify a username and select how you want to set the password:
- Enter manually: Enter the password manually.
- Generate: Specify the options to generate a Lockbox password automatically.
- Optionally, list the databases whose connections you want to manage. You must have access to them configured.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a custom Valkey™ installation, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create valkey --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create valkey \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --hosts <list_of_hosts> \ --databases <database_list> \ --ca-certificate <path_to_certificate>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: User name for connection to the database. -
--password: Password. -
--hosts: Comma-separated list of hosts in<host>:<port>format. -
--databases: Comma-separated list of databases.Make sure the user has the required access permissions.
-
--ca-certificate: Path to your TLS CA certificate file.TLS is enabled by default; to disable it, use the
--tls-disabledflag.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a custom Valkey™ installation, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { valkey = { cluster = { hosts = [ { host = "<host_1>" port = <port_1> }, { host = "<host_2>" port = <port_2> }, ... { host = "<host_N>" port = <port_N> } ] tls_params = { tls { ca_certificate = "<path_to_certificate>" } } } databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.valkey: Parameters for connecting to the custom Valkey™ installation:-
cluster.hosts: Host list. For each host, specifyhostandport. -
cluster.tls_params: TLS parameters. Select one of the sections:tls.ca_certificate: Path to your TLS CA certificate file.disabled: Disables TLS. TLS is enabled by default.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: User name for connection to the database. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Valkey™ custom installation, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
Trino
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- Select Connection type.
- Under Connection to Trino, specify the connection parameters:
- In the Coordinator field, specify the coordinator
host address and port number for the connection. - Optionally, enable TLS.
If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.
- In the Coordinator field, specify the coordinator
- Under Authentication:
- Specify the Username you will use to connect to the database.
- Select the password setting method:
- Enter manually: You set the password manually.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a custom Trino installation, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create trino --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create trino \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --coordinator <coordinator_parameters> \ --ca-certificate <path_to_certificate>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: User name for connection to the database. -
--password: Password. -
--coordinator: Coordinator parameters in<host>:<port>format. -
--ca-certificate: Path to your TLS CA certificate file.TLS is enabled by default; to disable it, use the
--tls-disabledflag.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a custom Trino installation, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { trino = { cluster = { coordinator = { host = "<host>" port = <port> } tls_params = { tls { ca_certificate = "<path_to_certificate>" } } } auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.trino: Parameters for connecting to the custom Trino installation:-
cluster.coordinator: Coordinator parameters,hostandport. -
cluster.tls_params: TLS parameters. Select one of the sections:tls.ca_certificate: Path to your TLS CA certificate file.disabled: Disables TLS. TLS is enabled by default.
-
auth.user_password.user: User name for connection to the database. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Trino custom installation, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
OpenSearch
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- Select Connection type.
- Under Connection to OpenSearch, specify the connection parameters:
- In the Connection type field, select Custom installation.
- In the Hosts field, specify the database host address and port number for the connection.
- Optionally, enable TLS.
If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.
- Under Authentication:
- Specify the Username you will use to connect to the database.
- Select the password setting method:
- Enter manually: You set the password manually.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
- Optionally, list the databases whose connections you want to manage. You must have access to them configured.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a custom OpenSearch installation, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create opensearch --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create opensearch \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --hosts <list_of_hosts> \ --ca-certificate <path_to_certificate>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: User name for connection to the database. -
--password: Password. -
--hosts: Comma-separated list of hosts in<host>:<port>format. -
--ca-certificate: Path to your TLS CA certificate file.TLS is enabled by default; to disable it, use the
--tls-disabledflag.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a custom OpenSearch installation, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { opensearch = { cluster = { hosts = [ { host = "<host_1>" port = <port_1> }, { host = "<host_2>" port = <port_2> }, ... { host = "<host_N>" port = <port_N> } ] tls_params = { tls { ca_certificate = "<path_to_certificate>" } } } auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.opensearch: Parameters for connecting to the custom OpenSearch installation:-
cluster.hosts: Host list. For each host, specifyhostandport. -
cluster.tls_params: TLS parameters. Select one of the sections:tls.ca_certificate: Path to your TLS CA certificate file.disabled: Disables TLS. TLS is enabled by default.
-
auth.user_password.user: User name for connection to the database. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a OpenSearch custom installation, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
MongoDB
- In the management console
, select the folder you want to create a connection in. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click Create connection.
- Specify the connection name.
- Optionally, add a description and label for the connection.
- Select Connection type.
- Under Connection to MongoDB, specify the connection parameters:
- In the Connection type field, select Custom installation.
- In the Hosts field, specify the database host address and port number for the connection.
- Optionally, enable TLS.
If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.
- Under Authentication:
- Specify the Username you will use to connect to the database.
- Select the password setting method:
- Enter manually: You set the password manually.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
- Optionally, list the databases whose connections you want to manage. You must have access to them configured.
- Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a custom MongoDB installation, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create mongodb --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create mongodb \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --hosts <list_of_hosts> \ --databases <database_list> \ --ca-certificate <path_to_certificate>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: User name for connection to the database. -
--password: Password. -
--hosts: Comma-separated list of hosts in<host>:<port>format. -
--databases: Comma-separated list of databases.Make sure the user has the required access permissions.
-
--ca-certificate: Path to your TLS CA certificate file.TLS is enabled by default; to disable it, use the
--tls-disabledflag.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a custom MongoDB installation, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { mongodb = { cluster = { hosts = [ { host = "<host_1>" port = <port_1> }, { host = "<host_2>" port = <port_2> }, ... { host = "<host_N>" port = <port_N> } ] tls_params = { tls { ca_certificate = "<path_to_certificate>" } } } databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.mongodb: Parameters for connecting to the custom MongoDB installation:-
cluster.hosts: Host list. For each host, specifyhostandport. -
cluster.tls_params: TLS parameters. Select one of the sections:tls.ca_certificate: Path to your TLS CA certificate file.disabled: Disables TLS. TLS is enabled by default.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: User name for connection to the database. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a MongoDB custom installation, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
Apache Kafka®
-
In the management console
, select the folder you want to create a connection in. -
Select Yandex MetaData Hub.
-
In the left-hand panel, select
Connection manager. -
Click Create connection.
-
Specify the connection name.
-
Optionally, add a description and label for the connection.
-
Select Connection type.
-
Under Connection to Apache Kafka®, specify the connection parameters:
-
In the Connection type list, select Custom installation.
-
In the Hosts field, specify the host address and port for the connection.
-
Optionally, enable TLS.
If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.
-
-
When using authentication:
-
Specify the Username for the connection.
-
Set a password in one of the following ways:
- Enter manually: Enter the password in the input field.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
-
Optionally, in the Authentication mechanisms list, select the required options:
PLAIN: Authentication with login and password provided as plain unencrypted text.SCRAM_SHA256: Authentication with SHA-256 hashing.SCRAM_SHA512: Authentication with SHA-512 hashing.
-
-
Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a custom Apache Kafka® installation, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create kafka --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create kafka \ --name <connection_name> \ --description "<connection_description>" \ --supported-mechanisms <list_of_authentication_mechanisms> \ --labels <label_list> \ --user <username> \ --password <password> \ --hosts <list_of_hosts> \ --ca-certificate <path_to_certificate>Where:
-
--name: Connection name. -
--description: Connection description. -
--supported-mechanisms: List of authentication mechanisms. The possible values are:PLAIN: Authentication with login and password provided as plain unencrypted text.SCRAM_SHA256: Authentication with SHA-256 hashing.SCRAM_SHA512: Authentication with SHA-512 hashing.
-
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: Username to connect to the cluster. -
--password: Password. -
--hosts: Comma-separated list of hosts in<host>:<port>format. -
--ca-certificate: Path to your TLS CA certificate file.TLS is enabled by default; to disable it, use the
--tls-disabledflag.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a custom Apache Kafka® installation, do the following:
-
In the configuration file, describe the resource you are creating:
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { kafka = { cluster = { hosts = [ { host = "<host_1>" port = <port_1> }, { host = "<host_2>" port = <port_2> }, ... { host = "<host_N>" port = <port_N> } ] tls_params = { tls { ca_certificate = "<path_to_certificate>" } } } auth = { sasl = { user = "<username>" password = { raw = "<password>" } supported_mechanisms = [ <list_of_authentication_mechanisms> ] } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.kafka: Parameters for connecting to the custom Apache Kafka® installation:-
cluster.hosts: Host list. For each host, specifyhostandport. -
cluster.tls_params: TLS parameters. Select one of the sections:tls.ca_certificate: Path to your TLS CA certificate file.disabled: Disables TLS. TLS is enabled by default.
-
auth: Authentication parameters. Select one of the sections:-
sasl: SASL authentication parameters.-
user: Username to connect to the cluster. -
password.raw: Password. -
supported_mechanisms: List of authentication mechanisms. The possible values are:PLAIN: Authentication with login and password provided as plain unencrypted text.SCRAM_SHA256: Authentication with SHA-256 hashing.SCRAM_SHA512: Authentication with SHA-512 hashing.
-
-
disabled: Disables authentication.
-
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a Apache Kafka® custom installation, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
Greenplum®
-
In the management console
, select the folder you want to create a connection in. -
Select Yandex MetaData Hub.
-
In the left-hand panel, select
Connection manager. -
Click Create connection.
-
Specify the connection name.
-
Optionally, add a description and label for the connection.
-
Select Connection type.
-
Under Connection to Greenplum, specify the connection parameters:
-
In the Connection type field, select Custom installation.
-
In the Hosts field, specify the database host address and port number for the connection.
When creating a connection to a custom database installation intended for Yandex DataLens, specify the host's external address.
-
Optionally, enable TLS.
If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.
-
-
Under Authentication:
- Specify the Username for the connection.
- Select the password setting method:
- Enter manually: Enter the password in the input field.
- Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
-
List the databases whose connections you want to manage. Make sure the user has the required access permissions.
-
Click Create.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To create a connection to a custom Greenplum® installation, do the following:
-
See the description of the CLI command for creating a connection:
yc metadata-hub connection-manager connection create greenplum --help -
Create your connection by running this command:
yc metadata-hub connection-manager connection create greenplum \ --name <connection_name> \ --description "<connection_description>" \ --labels <label_list> \ --user <username> \ --password <password> \ --hosts <list_of_hosts> \ --databases <database_list> \ --ca-certificate <path_to_certificate>Where:
-
--name: Connection name. -
--description: Connection description. -
--labels: Comma-separated list of labels in"<key>":"<value>"format. -
--user: User name for connection to the database. -
--password: Password. -
--hosts: Comma-separated list of hosts in<host>:<port>format. -
--databases: Comma-separated list of databases.Make sure the user has the required access permissions.
-
--ca-certificate: Path to your TLS CA certificate file.TLS is enabled by default; to disable it, use the
--tls-disabledflag.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To create a connection to a custom Greenplum® installation, do the following:
-
In the configuration file, describe the resource you are creating.
Here is the configuration file example:
resource "yandex_connectionmanager_connection" "<local_connection_name>" { name = "<connection_name>" description = "<connection_description>" labels = { "<key_1>" = "<value_1>" "<key_2>" = "<value_2>" ... "<key_N>" = "<value_N>" } params = { greenplum = { cluster = { hosts = [ { host = "<host_1>" port = <port_1> }, { host = "<host_2>" port = <port_2> }, ... { host = "<host_N>" port = <port_N> } ] tls_params = { tls { ca_certificate = "<path_to_certificate>" } } } databases = [ "<database_1>", "<database_2>", ... "<database_N>" ] auth = { user_password = { user = "<username>" password = { raw = "<password>" } } } } } }Where:
-
name: Connection name. -
description: Connection description. -
--labels: Labels in"<key>" = "<value>"format. -
params.greenplum: Parameters for connecting to the custom Greenplum® installation:-
cluster.hosts: Host list. For each host, specifyhostandport. -
cluster.tls_params: TLS parameters. Select one of the sections:tls.ca_certificate: Path to your TLS CA certificate file.disabled: Disables TLS. TLS is enabled by default.
-
databases: List of databases. Make sure the user has the required access permissions. -
auth.user_password.user: User name for connection to the database. -
auth.user_password.password.raw: Password.
-
-
-
Check if the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
Wait for the operation to complete.
-
-
For more information, see this Terraform provider guide
To create a connection to a MongoDB custom installation, use the Connection.Create REST API method or the ConnectionService.Create gRPC API method.
For more information about the available request parameters, see the REST API and gRPC API reference.
ClickHouse® is a registered trademark of ClickHouse, Inc