lib/miam/client.rb in miam-0.2.4.beta8 vs lib/miam/client.rb in miam-0.2.4.beta9
- old
+ new
@@ -3,10 +3,11 @@
def initialize(options = {})
@options = {:format => :ruby}.merge(options)
aws_config = options.delete(:aws_config) || {}
@iam = Aws::IAM::Client.new(aws_config)
- @driver = Miam::Driver.new(@iam, options)
+ @sts = Aws::STS::Client.new(aws_config)
+ @driver = Miam::Driver.new(@iam, @sts, options)
@password_manager = options[:password_manager] || Miam::PasswordManager.new('-', options)
end
def export(export_options = {})
exported, group_users, instance_profile_roles = Miam::Exporter.export(@iam, @options)