Azure CosmosDB Source
Provided by: "Apache Software Foundation"
Support Level for this Kamelet is: "Stable"
Consume Changes from a CosmosDB instance.
Configuration Options
The following table summarizes the configuration options available for the azure-cosmosdb-source
Kamelet:
Property | Name | Description | Type | Default | Example |
---|---|---|---|---|---|
Container Name | Required The Azure Cosmos container name. | string | |||
Database Endpoint | Required Sets the Azure Cosmos database endpoint the component will connect to. | string | |||
Database Name | Required The Azure Cosmos database name. | string | |||
Account Key | The Azure Cosmos account Key. | string | |||
Autocreate Lease Container | Sets if the component should create Cosmos lease container for the consumer automatically in case it doesn’t exist in Cosmos database. | boolean | false | ||
Autocreate Lease Database | Sets if the component should create Cosmos lease database for the consumer automatically in case it doesn’t exist in Cosmos account. | boolean | false | ||
Credential Type | Determines the credential strategy to adopt. Enum values: * SHARED_ACCOUNT_KEY * AZURE_IDENTITY | string | SHARED_ACCOUNT_KEY | ||
Lease Container Name | Sets the lease database where the leaseContainerName will be stored. | string | |||
Lease Database Name | Sets the lease container which acts as a state storage and coordinates processing the change feed across multiple workers. | string |
Dependencies
At runtime, the azure-cosmosdb-source
Kamelet relies upon the presence of the following dependencies:
-
camel:azure-cosmosdb
-
camel:kamelet
-
camel:jackson
Camel JBang usage
Prerequisites
-
You’ve installed JBang.
-
You have executed the following command:
jbang app install camel@apache/camel
Supposing you have a file named route.yaml with this content:
- route:
from:
uri: "kamelet:azure-cosmosdb-source"
parameters:
.
.
.
steps:
- to:
uri: "kamelet:log-sink"
You can now run it directly through the following command
camel run route.yaml
Azure CosmosDB Source Kamelet Description
Authentication methods
In this Kamelet you have the possibility of using the Azure Identity mechanism or the plain Shared Account Key. Respectively the parameters are AZURE_IDENTITY
and SHARED_ACCOUNT_KEY
The order of evaluation for AZURE_IDENTITY
is the following:
-
Enviroment
-
Workload Identity
-
Managed Identity
-
Azure Developer CLI
-
IntelliJ
-
Azure CLI
-
Azure Powershell
For more information about this you can look at Azure Identity documentation