Keys

List of IAM access key for <%= current_username %>:

<%- @keys.each do |key, last_used| -%>

<%= key.access_key_id %>

Status: <%= key.status %>
Since: <%= key.create_date %>
Last Used: <%= last_used.service_name %> @ <%= last_used.region %> / <%= last_used.last_used_date %>
<%- if key.status == 'Active' -%>
<%- else -%>
<%- end -%>
<%- end -%>
<%- if @keys.size < 2 -%>
<%- else -%>

IAM user cannot have more than 2 access keys at once. Delete an existing key to create new one; AWS docs

<%- end -%>