nl_tokens: Loads the credentials from the instance metadata service
pl_tokens: function refresh ( <mask> ) { if ( ! callback ) callback = function ( err ) { if ( err ) throw err ; } ; try { if ( ! this . filename ) this . loadDefaultFilename ( ) ; var creds = AWS . util . ini . parse ( AWS . util . readFileSync ( this . filename ) ) ; if ( typeof creds [ this . profile ] === 'object' ) { this . accessKeyId = creds [ this . profile ] [ 'aws_access_key_id' ] ; this . secretAccessKey = creds [ this . profile ] [ 'aws_secret_access_key' ] ; this . sessionToken = creds [ this . profile ] [ 'aws_session_token' ] ; } if ( ! this . accessKeyId || ! this . secretAccessKey ) { throw new Error ( 'Credentials not set in ' + this . filename + ' using profile ' + this . profile ) ; } this . expired = false ; callback ( ) ; } catch ( err ) { callback ( err ) ; } }