-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support pushdown of module ignores (#817)
when the top level module has an ignore code above it, any resources in that module which fail the check will be ignored. This will include nested modules
- Loading branch information
1 parent
f15dba0
commit 046dbdc
Showing
3 changed files
with
89 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#tfsec:ignore:AWS052:exp:2021-02-02 | ||
module "db" { | ||
source = "terraform-aws-modules/rds/aws" | ||
version = "~> 2.0" | ||
|
||
identifier = "demodb" | ||
|
||
engine = "mysql" | ||
engine_version = "5.7.19" | ||
instance_class = "db.t2.large" | ||
allocated_storage = 5 | ||
|
||
name = "demodb" | ||
username = "user" | ||
password = aws_ssm_parameter.pw.value | ||
port = "3306" | ||
|
||
maintenance_window = "Mon:00:00-Mon:03:00" | ||
backup_window = "03:00-06:00" | ||
} | ||
|
||
resource "aws_ssm_parameter" "pw" { | ||
name = "pw" | ||
type = "SecureString" | ||
value = "changeme" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters