diff --git a/awswrangler/_config.py b/awswrangler/_config.py index af065beca..a1c7e9da5 100644 --- a/awswrangler/_config.py +++ b/awswrangler/_config.py @@ -224,6 +224,9 @@ def _apply_type(name: str, value: Any, dtype: type[_ConfigValueType], nullable: raise exceptions.InvalidArgumentValue( f"{name} configuration does not accept a null value. Please pass {dtype}." ) + # Handle case where string is empty, "False" or "0". Anything else is True + if isinstance(value, str) and dtype is bool: + return value.lower() not in ("false", "0", "") try: return dtype(value) if isinstance(value, dtype) is False else value except ValueError as ex: