avn service integration
A full list of commands for avn service integration.
Manage Aiven internal and external integrations
avn service integration-create
Creates a new service integration.
| Parameter | Information |
|---|---|
--integration-type | The integration type |
--source-service | The integration source service |
--dest-service | The integration destination service |
--source-endpoint-id | The integration source endpoint ID |
--dest-endpoint-id | The integration destination endpoint ID |
--user-config-json | The integration parameters as JSON string or path to file preceded by @ |
-c KEY=VALUE | The custom configuration settings. |
Endpoint IDs are used when creating an integration with external services. To get an integration endpoint ID use the dedicated endpoint list command.
Both the --user-config-json and -c flags provide a way to customise
the service integration using different methods. Only one of the flags are
allowed per command. When using both in the same command, an error is
shown:
ERROR command failed: UserError: -c (user config) and --user-config-json parameters
cannot be used at the same time
Example: Create a kafka_logs service integration to send the
logs of the service named demo-pg to an Aiven for Kafka service named
demo-kafka in the topic test_log.
avn service integration-create \
--integration-type kafka_logs \
--source-service demo-pg \
--dest-service demo-kafka \
-c 'kafka_topic=test_log'
avn service integration-delete
Deletes a service integration.
| Parameter | Information |
|---|---|
integration-id | The ID of the integration to delete |
Example: Delete the integration with id
8e752fa9-a0c1-4332-892b-f1757390d53f.
avn service integration-delete 8e752fa9-a0c1-4332-892b-f1757390d53f
avn service integration-endpoint-create
Creates an external service integration endpoint.
| Parameter | Information |
|---|---|
--endpoint-name | The name of the endpoint |
--endpoint-type | The endpoint type |
--user-config-json | The endpoint configuration in JSON format or as path to a file preceded by @ |
-c KEY=VALUE | The custom configuration settings. |
Example: Create an external Apache Kafka® endpoint named
demo-ext-kafka.
avn service integration-endpoint-create --endpoint-name demo-ext-kafka \
--endpoint-type external_kafka \
--user-config-json '{"bootstrap_servers":"servertest:123","security_protocol":"PLAINTEXT"}'
For more examples of creating external Apache Kafka® endpoints, see Integrate Aiven for Apache Flink® with Apache Kafka®.
Example: Create an external Loggly endpoint named Loggly-ext.
avn service integration-endpoint-create \
--endpoint-name Loggly-ext \
-d loggly -t rsyslog \
-c server=logs-01.loggly.com \
-c port=6514 \
-c format=rfc5424 \
-c tls=true \
-c sd='TOKEN@NNNNN TAG="tag-of-your-choice"' \
-c ca='loggly-tls-cert'