Lambda function to run cfn_nag in CodePipeline
A lambda function to run cfn_nag as an action in CodePipeline.
To install, navigate to the cfn-nag-pipeline application in the AWS Serverless Repo (SAR) console and click deploy.
The “application” deployed in SAR always reflects the latest version of cfn_nag published to rubygems.org. This means the “core” rules should always be up to date. That said, if you have developed custom rules, as of 0.5.5 you can load those rules from an S3 bucket of your choosing. At the point of deploying the “application” from SAR, you can select a rule bucket name and a prefix within that bucket. Any objects with a key of the form: prefix/\*Rule.rb
will be loaded as a cfn_nag rule.
AWS Lambda
cfn-nag-pipeline
spec/test_templates/json/ec2_volume/*.json
spec/e2e/code_pipeline_using_nag.yml
rake
rake deploy