Class: Aws::SharedConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud_formation_tool.rb

Instance Method Summary collapse

Instance Method Details

#profile_regionObject



45
46
47
48
49
50
51
52
53
54
# File 'lib/cloud_formation_tool.rb', line 45

def profile_region
  c = (if @parsed_credentials and @parsed_credentials[@profile_name] then
    @parsed_credentials[@profile_name]
  elsif @parsed_config and @parsed_config[@profile_name] then
    @parsed_config[@profile_name]
  else
    {}
  end)
  c['region'] || c['aws_region'] || c['sso_region'] || nil
end