/cdk-nag-custom-nag-pack

Collection of custom rules

Primary LanguageTypeScriptApache License 2.0Apache-2.0

cdk-nag-custom-nag-pack

All Contributors

rules

Rule ID Cause Explanation
CR1 Definend tags not exist Certain tags are checked if it exist
CR2 Definend tags has wrong value Certain tags are checked with defined value

config

CR1

import { CustomChecks } from '@jaykingson/cdk-nag-custom-nag-pack'
...
Aspects.of(app).add(new CustomChecks({
    // use whatever tags you want to check
  cr1TagsToCheck: ['Environment', 'Owner'],
  cr2TagsWithValueToCheck: { Stage: ["dev", "prod"] },
}));

Contributors

Carl Schaffer
Carl Schaffer

🤔