Skip to content

Commit

Permalink
Fixed iam max password age regex
Browse files Browse the repository at this point in the history
  • Loading branch information
arya23065 committed Oct 6, 2023
1 parent e13e9b9 commit e4da59b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_validated_parameters(event: CloudFormationCustomResourceEvent) -> dict:

true_false_pattern = r"^true|false$"

parameter_pattern_validator("MAX_PASSWORD_AGE", params.get("MAX_PASSWORD_AGE", ""), pattern=r"^[0-9]$|^[0-9][0-9]$|^[0-9][0-2][0-8]$")
parameter_pattern_validator("MAX_PASSWORD_AGE", params.get("MAX_PASSWORD_AGE", ""), pattern=r"^[1-9]$|^[0-9][0-9]$|^[0-9][0-9][0-9]$|^[0-1][0]([0-8][0-9]|[9][0-5])$")
parameter_pattern_validator(
"MINIMUM_PASSWORD_LENGTH", params.get("MINIMUM_PASSWORD_LENGTH", ""), pattern=r"^[6-9]$|^[0-9][0-9]$|^[0-9][0-2][0-8]$"
)
Expand Down

0 comments on commit e4da59b

Please sign in to comment.