Start & Shutdown

This section assumes my-connector project has been generated.

 

Connector start

Testing your connector runs the process in the foreground. Use cdk deploy start to run your connector in the background:

$ cdk deploy start --config sample-config.yaml
Log file: /private/tmp/my-connector/my-connector.log
Connector runs with process id: 88589
 

Run an Official Connector

You can use the same cdk deploy command to run an official connector from InfinyOn Hub:

List available connectors:

$ cdk hub list

Download a certified connector from the Hub (requires a free InfinyOn Cloud account):

$ cdk hub download infinyon/http-source@0.3.0

Use .ipkg connector package file with the --ipkg option to run it:

$ cdk deploy start --ipkg infinyon-http-source-0.3.0.ipkg --config sample-config.yaml
 

List running connectors

CDK offers a convenience function to list running connectors:

$ cdk deploy list
 NAME                            STATUS  
 my-my-connector-test-connector  Running 

You can use the connector name to shut it down.

 

Connector shutdown

Stop a running your connector with cdk deploy shutdown

$ cdk deploy shutdown --name my-my-connector-test-connector
Shutting down connector: my-my-connector-test-connector 
pid: 56421

In the next section we’ll take a look at the logs for troubleshooting.

 

Steps

  1. Generate a Connector
  2. Build and Test
  3. Start and Shutdown
  4. Troubleshooting
  5. Secrets
  6. Publish to Connector Hub
  7. Use Examples in Github