Skip to content

Commit

Permalink
increasing iam cred report interval
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdfuller committed Jun 28, 2019
1 parent d51efeb commit c51e8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/aws/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ function waitForCredentialReport(iam, callback, CREDENTIAL_DOWNLOAD_STARTED) {
var pingCredentialReport = function(pingCb, pingResults) {
iam.getCredentialReport(function(getErr, getData) {
if (getErr || !getData || !getData.Content) {
return pingCb('Waiting for credential report');
return pingCb('Error waiting for credential report: ' + (getErr ? getErr : 'No data returned from AWS after 60 seconds.'));
}

pingCb(null, getData);
});
};

async.retry({times: 20, interval: 1000}, pingCredentialReport, function(reportErr, reportData){
async.retry({times: 20, interval: 3000}, pingCredentialReport, function(reportErr, reportData){
if (reportErr || !reportData) {
//CREDENTIAL_REPORT_ERROR = 'Error downloading report';
//return callback(CREDENTIAL_REPORT_ERROR);
Expand Down

0 comments on commit c51e8e2

Please sign in to comment.