lib/miam/exporter.rb in miam-0.2.4.beta15 vs lib/miam/exporter.rb in miam-0.2.4.beta16

- old
+ new

@@ -142,10 +142,12 @@ Parallel.each(roles, :in_threads => @concurrency) do |role| role_name = role.role_name instance_profiles = role.instance_profile_list.map {|i| i.instance_profile_name } policies = export_role_policies(role) attached_managed_policies = role.attached_managed_policies.map(&:policy_arn) + role_data = @iam.get_role(role_name: role_name).role + max_session_duration = role_data.max_session_duration @mutex.synchronize do instance_profiles.each do |instance_profile_name| instance_profile_roles[instance_profile_name] ||= [] instance_profile_roles[instance_profile_name] << role_name @@ -157,9 +159,10 @@ :path => role.path, :assume_role_policy_document => JSON.parse(document), :instance_profiles => instance_profiles, :policies => policies, :attached_managed_policies => attached_managed_policies, + :max_session_duration => max_session_duration, } progress end end