question: Is there a Rule ID fo aws-iam-set-max-password-age #1483
Answered
by
owenrumney
peraltadavidtrvlx
asked this question in
Help and suppports
-
Is there any rule for aws-iam-set-max-password-age that can be added to tfsec exclusions? Reason is that, this is failing from our validations even though we already have the parameter added
The value is being passed using an ansible role so there's no default value for this on variables.tf |
Beta Was this translation helpful? Give feedback.
Answered by
owenrumney
Feb 2, 2022
Replies: 1 comment 5 replies
-
Hey @peraltadavidtrvlx - tfsec can only work with the information it has. If it doesn't have a default or the You have a number of tfsec based options
resource "aws_iam_account_password_policy" "name_here" {
...
max_password_age = var.max_password_age #tfsec:ignore:aws-iam-set-max-password-age
...
}
|
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
peraltadavidtrvlx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @peraltadavidtrvlx - tfsec can only work with the information it has. If it doesn't have a default or the
tfvars
file with the used values it can only deduce there is no value.You have a number of tfsec based options
https://aquasecurity.github.io/tfsec/v1.0.8/getting-started/configuration/config/