snowplow-rdb-loader
snowplow-rdb-loader copied to clipboard
Common: make region decoder pure
Currently, region config decoder is using getRegion method from DefaultAwsRegionProviderChain. Since this method is accessing to environment, it isn't pure in functional programming sense. Decoders should be completely pure therefore we should eliminate its usage in region config decoder. Related discussion: https://github.com/snowplow/snowplow-rdb-loader/pull/612#discussion_r756788960