Currrently, configuration of the secrets manager region and endpoint needs to be done through system properties and environment variables. There are a few problems with this approach that I have run into:
- If ARNs ever have to be retrieved from different regions, the driver only supports one
- Setting the environment variables has been an issue in some environments, like when EMR runs your code in yarn containers
If region/endpoint could be provided as connection properties, the region/endpoint could be used dynamically.