'Need to create Alerts for AWS IAM Users for MFA, Access key rotation and Login
I need to create below Alerts on IAM User for MFA, Access key rotation and Login.
- Create alerts for MFA not enabled and Access Key rotation in 6 month for IAM User.
- Create alert when some user is not logged in AWS Account for more than 6 months
I googled for above alerts but got nothing. Please provide you inputs on this. thanks in advance.
Solution 1:[1]
Use AWS Config Rules to do so:
iam-user-mfa-enabled - Checks whether the AWS Identity and Access Management users have multi-factor authentication (MFA) enabled.
access-keys-rotated rule - Checks whether the active access keys are rotated within the number of days specified in maxAccessKeyAge. The rule is non-compliant if the access keys have not been rotated for more than maxAccessKeyAge number of days.
iam-user-unused-credentials-check - Checks whether your AWS Identity and Access Management (IAM) users have passwords or active access keys that have not been used within the specified number of days you provided.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tomasz Bre? |
