Token

The following example uses the us-west-2 region and prefixes all secrets with staging.

Tip

Some of the settings of this config provider can be configured via environment variables.

Worker Configuration

Add the following configuration to your Connect worker config file to enable this ConfigProvider to be used by connectors.

Worker Configuration
#
#Tue Jun 28 18:27:57 UTC 2022
config.providers.secretManager.param.secret.prefix=staging
config.providers.secretManager.class=com.github.jcustenborder.kafka.config.aws.SecretsManagerConfigProvider
config.providers=secretManager
config.providers.secretManager.param.aws.region=us-west-2

Connector Configuration

Add the following configurations to your connector configuration when you would like to retrieve a value from the config provider

Connector Configuration
{
  "username" : "${secretManager:secret/test/some/connector:username}",
  "password" : "${secretManager:secret/test/some/connector:password}"
}