Permalink
Browse files

Adding creds for node-cloudwatch

  • Loading branch information...
1 parent bff64da commit b7e8ed920f1fe243a9afa4121bd5830c59fa51ea @MainframeEnzo MainframeEnzo committed Jan 3, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 modules/credentials.js
View
@@ -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.