Skip to content

tmprender/checkov-iam-lockdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

checkov-iam-lockdown

Collection of custom checkov policies to prevent IAM changes via Terraform

Getting started

  1. Download checkov

    pip3 install checkov

  2. Clone this repository (optional)

    git clone https://github.com/tmprender/checkov-iam-lockdown

  3. Run checkov using custom policies

    checkov -d example/ --external-checks-dir checkov-iam-lockdown/gcp

    or reference git repo directly...

    checkov -d example/ --external-checks-git https://github.com/tmprender/checkov-iam-lockdown/aws

Next steps

Configure separate pipeline to manage IAM changes. Simply...

check for iam changes in tf plan

terraform show -json tfplan.plan | jq '.planned_values.root_module.resources[] | select(.type | contains ("iam"))'

and forward the resulting output to a meaningful location.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages