Commit 76f6ee5d authored by Quentin Revel's avatar Quentin Revel Committed by Anton Babenko

Add max_password_age for password policy (#5)

parent 7504a11b
......@@ -9,6 +9,7 @@ resource "aws_iam_account_alias" "this" {
resource "aws_iam_account_password_policy" "this" {
count = "${var.create_account_password_policy ? 1 : 0}"
max_password_age = "${var.max_password_age}"
minimum_password_length = "${var.minimum_password_length}"
allow_users_to_change_password = "${var.allow_users_to_change_password}"
hard_expiry = "${var.hard_expiry}"
......
......@@ -12,6 +12,11 @@ variable "create_account_password_policy" {
default = true
}
variable "max_password_age" {
description = "The number of days that an user password is valid."
default = 0
}
variable "minimum_password_length" {
description = "Minimum length to require for user passwords"
default = 8
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment