Official SDKs support setting service endpoints via config settings as well as environment variables: https://docs.aws.amazon.com/sdkref/latest/guide/feature-ss-endpoints.html We should do the same, eventually. (Low priority, since nobody has stumbled over the lack of this feature until very recently.)