Skip to content

amitshcc/Notify-IAM-Updates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amit Sharma

Checkout my profile and other projects at amit.cloud

Notify IAM Updates

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).

Usage (In N. Virginia Region):

  1. Create a Lambda function with all three scripts.
  2. Configure lambda handler to point to main.lambda_handler()
  3. Create a new Cloudwatch rule for IAM service and all event types.
  4. For Trigger, add the lamdba create in first two steps.

Events Supported (For both Allowed and Denied events):

  • CreateUser
  • DeleteUser
  • AttachUserPolicy
  • DetachUserPolicy
  • CreatePolicy
  • DeletePolicy
  • CreatePolicyVersion

Other Details

  • Python Version = 3.7.2
  • Boto3 Version = 1.9.188

About

Code for AWS Lambda to notify updates in IAM Policies and Users.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages