Checkout my profile and other projects at amit.cloud
This script notifies updates in IAM Policies and Users as per incoming events.
The script works with Cloudwatch rule to monitor Events related to IAM updates.
This setup works only in North Virginia Region (us-east-1).
- Create a Lambda function with all three scripts.
- Configure lambda handler to point to
main.lambda_handler() - Create a new Cloudwatch rule for IAM service and all event types.
- For Trigger, add the lamdba create in first two steps.
- CreateUser
- DeleteUser
- AttachUserPolicy
- DetachUserPolicy
- CreatePolicy
- DeletePolicy
- CreatePolicyVersion
- Python Version = 3.7.2
- Boto3 Version = 1.9.188