Overview

Pydantic Settings 2.6, released on January 15, 2025, adds cloud configuration sources (AWS SSM, GCP Secret Manager, Azure Key Vault).

Main Features

Cloud sources

New cloud sources allow loading configuration from major cloud providers' secret management services.

python
from pydantic_settings import BaseSettings

class AppConfig(BaseSettings):
    db_url: str
    api_key: str

    model_config = {
        'env_prefix': 'APP_',
    }

# Secrets can come from env variables
# or configured cloud sources
config = AppConfig()
print(config.db_url)

Sources