Skip to content

Commit

Permalink
Ignoring non IAM domain users
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanholsgrove committed May 25, 2016
1 parent 47645ab commit 0082efa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node/iam_mfa_require-triggered.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ exports.handler = function(event, context) {
// Only call out Async if a User
if (configurationItem.resourceType === 'AWS::IAM::User') {

if (/(.*).com$/.test(configurationItem.resourceName)) {

iam.listMFADevices({ UserName: configurationItem.resourceName }, function(mfaerr, mfadata) {

var ret = 'NON_COMPLIANT';
Expand Down Expand Up @@ -80,7 +82,7 @@ exports.handler = function(event, context) {
});

});
}
} else {

// Put together the request that reports the evaluation status
Expand Down

0 comments on commit 0082efa

Please sign in to comment.