public static IAMInfo getIAMInstanceProfileInfo ( ) { String json = getData ( EC2_METADATA_ROOT + "/iam/info" ) ; if ( null == json ) { return null ; } try { return mapper . readValue ( json , IAMInfo . class ) ; } catch ( Exception e ) { log . warn ( "Unable to parse IAM Instance profile info (" + json + "): " + e . getMessage ( ) , e ) ; return null ; } }
Get information about the last time the instance profile was updated including the instance s LastUpdated date InstanceProfileArn and InstanceProfileId .