Prerequisites
Before deploying a connector to StreamNative Cloud, make sure the following prerequisites have been met:- A running external data system service.
- A running Pulsar Cluster on StreamNative Cloud and the required environment has been set up.
-
At least one of the required tools: snctl, pulsarctl,
pulsar-admin, or the Terraform module. For a quickstart of setting uppulsarctlandpulsar-admin, see set up client tools.
Create a built-in connector
The following example shows how to create a data generator source connector namedtest on Streamnative Cloud using different tools.
The builtin:// is followed by the name of the built-in connector, such as builtin://data-generator.
- snctl
- pulsarctl
- pulsar-admin
- Terraform
- Rest API
To create a data generator source connector named You should see the following output:If you want to verify whether the data generator source connector has been created successfully, run the following command:You should see the following output:
test, run the following command.Pass sensitive configs to connector
Some connectors require sensitive information, such as passwords, token, to be passed to the connector. And you may not want to expose these sensitive information in the connector configuration. To solve this problem, you can use the following methods to pass sensitive information to the connector:-
Create a secret
For example, the AWS lambda sink connector requires the AWS access key and secret key to be passed to the connector.
You can create a secret in the console UI and pass the secret name to the connector configuration.

-
Pass secrets to the connector configuration
The following example shows how to create an AWS lambda sink connector named
teston Streamnative Cloud using different tools. Thebuiltin://is followed by the name of the built-in connector, such asbuiltin://data-generator.
- snctl
- pulsarctl
- pulsar-admin
- Terraform
- Rest API
To create an AWS lambda sink connector named You should see the following output:If you want to verify whether the AWS lambda sink connector has been created successfully, run the following command:You should see the following output:
test, run the following command.Create a custom connector
To create a custom Pulsar Connector, you need to upload the connector jar/nar file to the StreamNative Cloud Package service first. Below are the steps:Upload your connector file to Pulsar
- snctl
- Pulsarctl
- Pulsar-admin
Upload packagesYou should see the following output:
archive argument to the package URL(like sink://public/default/custom-connect@v1) you uploaded.