Skip to content

Commit

Permalink
Adding creds for node-cloudwatch
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerappliances committed Jan 3, 2012
1 parent bff64da commit b7e8ed9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/credentials.js
Expand Up @@ -18,6 +18,10 @@ CredentialManagerModule.prototype.check = function () {
Module.utilities.exit(credential + ' credential is not declared');

});

/* For node-cloudwatch */
process.env[Module.constants.strings.AWS_SECRET_ACCESS_KEY] = Module.constants.globals[Module.constants.strings.AWS_SECRET_ACCESS_KEY];
process.env[Module.constants.strings.AWS_ACCESS_KEY_ID] = Module.constants.globals[Module.constants.strings.AWS_ACCESS_KEY_ID];
};

exports.CredentialManagerModule = CredentialManagerModule;

0 comments on commit b7e8ed9

Please sign in to comment.