Skip to content

Commit

Permalink
Only use us-east-1 for Organizations. Fixes #13.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarsen committed Aug 8, 2020
1 parent 74e3f2f commit ffa633a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def initialize(service, region, options)
# regional service
client_options.merge!({ region: region }) unless region == 'global'

# organizations only uses us-east-1 in non cn/gov regions
client_options.merge!({ region: 'us-east-1' }) if service.downcase == 'organizations' # rubocop:disable Layout/LineLength

# debug with wire trace
client_options.merge!({ http_wire_trace: true }) if @options.debug

Expand Down

0 comments on commit ffa633a

Please sign in to comment.