settings_backend
section to your project’s metadata.yaml
file.
backend_type
field is required for all settings backends. The other fields will be passed
to the backend as keyword arguments when initializing the backend.
See below sections for the different types of settings backends that are available.
{prefix}{settings_name}
. For example if the setting is OKTA_CLIENT_SECRET
and the prefix is default_repo/settings/
, Mage will fetch the value for default_repo/settings/OKTA_CLIENT_SECRET
.
prefix
: A prefix to add to the settings name when fetching the value from AWS Secrets Manager.use_cache
: Whether to use a cache for the settings backend. Defaults to false
.cache_config
: configuration options for the cache if use_cache
is true
.
max_cache_size
(int): The maximum number of secrets to cache.exception_retry_delay_base
(int): The number of seconds to wait after an exception is encountered and before retrying the request.exception_retry_growth_factor
(int): The growth factor to use for calculating the wait time between retries of failed requests.exception_retry_delay_max
(int): The maximum amount of time in seconds to wait between failed requests.default_version_stage
(str): The default version stage to request.secret_refresh_interval
(int): The number of seconds to wait between refreshing cached secret information.