April 2019
Intermediate to advanced
508 pages
11h 57m
English
The key_info method is used to fetch information about the active set of AWS keys in your current session. The data returned closely resembles the output of the whoami command in the Pacu CLI, but this provides a programmatic interface for retrieving the data. You could set the value of the variable named user to key_info(), where you will then be able to access identifying information for the current user (such as name, ARN, and account ID), as well as permissions that have been enumerated from the iam__enum_permissions module.
Read now
Unlock full access