Appendix A: Disabling cfn-nag and cfn-lint
This solution runs cfn-nag and cfn-lint to scan the AWS CloudFormation template that
is to be deployed. If errors are found, the release is stopped. For information about
cfn-nag, see the cfn_nag GitHub repository
You have the option to disable cfn-nag and cfn-lint while deploying new changes to AWS CloudFormation stacks by using the following procedure.
-
Sign in to the AWS CodeBuild console
. -
On the Build projects page, select
CfnLintBuildProject-<hash>
orCfnNagBuildProject-<hash>
. -
Choose Edit and then choose Environment.
-
Expand Additional configuration and change the
RUNNING_CFN_LINT
orRUNNING_CFN_NAG
value to No. -
Choose Update environment.