Skip to content

spirosoik/credentials-janitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

credentials-janitor

A lambda function which detects and remove unused IAM credentials for AWS users.

Purpose

Respecting security we need to remove IAM user credentials that are not used anymore and notify them back that we revoked their credentials (login profile + access keys).

How To

We are going to schedule a CloudWatch event to invoke the lambda function periodically. Lambda function will do the listing and will check when they used last time the login profile and access keys. The max time is configurable as environment variable which can be passed in the lambda deployment.

Architecture

Architecture

Deploy

make

The above will run the followings:

  • Build Binary for lambda
  • Prepare the artifact for Lambda
  • Upload Lambda to provided S3 bucket
  • Apply terraform (note: you need to provide env vars for terraform or use your own .tfvars)

For terraform details you can read the documentation

About

A lambda function which detects and remove unused IAM credentials in AWS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published